|
Re: incorrect type error message: msg#00061lang.haskell.glasgow.bugs
> 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> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-645296 ] configure doesn't recognise platform, noreply |
|---|---|
| Next by Date: | [ ghc-Bugs-646201 ] ghc-5.04: panic! ... tySplitTyConApp ..., noreply |
| Previous by Thread: | RE: incorrect type error message, Simon Peyton-Jones |
| Next by Thread: | [ ghc-Bugs-643878 ] sortBy not stable, noreply |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |