> ghc-4.08 (the current version in
> http://www.haskell.org/ghc/dist/4.08/ghc-4.08-i386-unknown-lin
> ux.tar.gz)
> compiles the following program without error:
> 
> > module Main(main) where
> > main = main
> > data Foo = baz
> 
> According to the Haskell 98 report, this is not legal Haskell. Are
> there are any Glasgow extensions making this program legal Glasgow
> Haskell?

This is actually a bug; the 'baz' was being treated as the constructor, but
since the rest of the system doesn't let you use lower-case identifiers as
constructors the declaration is useless (not to mention non-Haskell 98).
This will be fixed in 4.08.1.

Cheers,
        Simon

Reply via email to