Chimeric syntax

Max Bolingbroke batterseapower at hotmail.com
Tue Apr 28 16:09:05 EDT 2009


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


More information about the Glasgow-haskell-users mailing list