logo       

Re: incorrect type error message: msg#00061

lang.haskell.glasgow.bugs

Subject: Re: incorrect type error message

> 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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise