Rex Page wrote:
> Both ghc and Hugs find that the two equations in the following
> definition specify conflicting arities for the function untokens.
> > untokens :: a -> [[a]] -> [a]
> > untokens separator [ ] = [ ]
> > untokens separator = foldr1 insertSeparator
> > where
> > insertSeparator tokenA tokenB = tokenA++[separator]++tokenB
> Why is that?
Haskell differs from Miranda(tm) here. In Haskell "the number of patterns
in each clause must be the same" (Haskell 1.3 report, 4.4.2 Function
bindings).
Cheers,
Ronny Wichers Schreur
[EMAIL PROTECTED]
> pi ~ 3.1415926535 8979323846 5028841971 6939937510 5820974944
> 5923078164 0628620899 8628034825 3421170679 8214808651 ...
> Shanks and Wrench, Mathematics of Computation, 1962
Close enough for me.
RWS.