Different behavior of GHC 6.10.1 and Hugs (Sep 2006)

Vladimir Reshetnikov v.reshetnikov at gmail.com
Sat Apr 3 09:40:03 EDT 2010


Hi list,

GHC 6.10.1:

Prelude> :t let f x y = return x == return y in f
let f x y = return x == return y in f :: (Eq (m a), Monad m) => a -> a ->
Bool

Hugs (Sep 2006):

Hugs> :t let f x y = return x == return y in f
ERROR - Ambiguous type signature in inferred type
*** ambiguous type : (Eq (a b), Monad a) => b -> b -> Bool
*** assigned to    : f

Who is right?

--
Thanks
Vladimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20100403/3cb14d32/attachment.html


More information about the Glasgow-haskell-users mailing list