RE: [Haskell-cafe] Re: Definition of hidden instance members (bug in GHC or Hugs+Yhc)

2008-07-07 Thread Simon Peyton-Jones
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:

[Haskell-cafe] Re: Definition of hidden instance members (bug in GHC or Hugs+Yhc)

2008-07-05 Thread Neil Mitchell
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

Re: [Haskell-cafe] Re: Definition of hidden instance members (bug in GHC or Hugs+Yhc)

2008-07-05 Thread Brandon S. Allbery KF8NH
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