GHC doesn't accept data types with 0 fielddecls

Simon Marlow simonmar at microsoft.com
Fri Dec 21 05:28:05 EST 2001


> With the module
> 
>     data Foo = Foo {}
> 
> ghc tells me
> 
>     tt.lhs:2: parse error on input `}'
> 
> while the report allows this.

Fixed; thanks.

Simon




More information about the Glasgow-haskell-bugs mailing list