Re: labelled fields in ghc-2.04

1997-06-18 Thread Simon L Peyton Jones
| data X = A {a :: Int} | B {a :: Int} | -- | test2.lhs:2: | Conflicting definitions for: `a' | Defined at test2.lhs:3 | Defined at test2.lhs:3 Embarassing, but all too true. There's really no workaround for this. GHC 2.04 is stupidly unable to have

labelled fields in ghc-2.04

1997-06-12 Thread Meurig Sage
This bug was mentioned during ghc-2.03's time. I thought it had been fixed since. But the following code still does not compile in ghc-2.04: -- data X = A {a :: Int} | B {a :: Int} -- test2.lhs:2: Conflicting definitions for: `a' Defined