incorrect type error message
Bernard James POPE
bjpop at cs.mu.OZ.AU
Thu Nov 28 18:54:21 EST 2002
> cam-02-unx:~/tmp$ $gpj -c Foo.hs
>
> Foo.hs:5:
> No instance for (Num (f a))
> arising from the literal `1' at Foo.hs:5
> Probable cause: the monomorphism restriction applied to the
> following:
> e :: f a (bound at Foo.hs:5)
> In the second argument of `fmap', namely `1'
> In a right-hand side of function `e': fmap id 1
Nice one.
Next on my wish list is ... :)
Cheers,
Bernie.
More information about the Glasgow-haskell-bugs
mailing list