I think GHC is right here. See
http://haskell.org/onlinereport/decls.html#instance-decls
esp the bit starting It is illegal to give a binding...
Simon
| -Original Message-
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil
| Mitchell
| Sent: 06 July 2008 00:03
| To:
This is either a GHC bug, or a Yhc+Hugs bug - I'm not sure which, but
the compilers disagree:
import Prelude hiding ((==))
data Foo = Foo
instance Eq Foo where
(==) a b = True
I was thinking that GHC's behaviour seems more sensible, but the
following fails:
import qualified
On 2008 Jul 5, at 19:02, Neil Mitchell wrote:
This is either a GHC bug, or a Yhc+Hugs bug - I'm not sure which, but
the compilers disagree:
import Prelude hiding ((==))
data Foo = Foo
instance Eq Foo where
(==) a b = True
I was thinking that GHC's behaviour seems more sensible, but the