Max Bolingbroke | 28 Apr 22:09
Picon
Gravatar

Re: Chimeric syntax

2009/4/28 Scott Michel <scooter.phd <at> gmail.com>:
> This got me to thinking that either ghc has issues or I have some
> fundamental misunderstanding of Haskell syntax. Or, maybe I should use
> someone else's grammar.

GHC's parser is over-generous by design. See
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Parser. A
precise description of what is valid Haskell it is certainly NOT, but
it will certainly accept any valid Haskell program. This may not be
quite what you want for an IDE - but it might be good enough for a
first cut.

Cheers,
Max

Gmane