Language.Haskell.Parser and layout rules

Simon Marlow simonmar at
Thu Feb 17 09:34:29 EST 2005

On 17 February 2005 14:18, Malcolm Wallace wrote:

> Ross Paterson <ross at> writes:
>> The Report (section 9.3, especially notes 1 and 2) says "A nested
>> context must be further indented than the enclosing context", so
>> this is illegal. GHC and Hugs have innovated here, ...
> I see you are using "innovated" here in the Microsoft sense, meaning
> "undocumented and incompatible departure from standards".  :-)

You're right it's undocumented.  I'll fix that.

Is nhc98 fully compliant with the H98 layout rule?  There are some good
tests in testsuite/tests/ghc-regress/parser, BTW.  I can't build nhc98
here, I keep getting

ghc-6.2.2: unknown package name: exts
make[1]: ***
Error 1
make[1]: Leaving directory `/home/simonmar/tmp/nhc98-1.16/src/hmake'
make: *** [targets/ix86-Linux/hmake-ghc] Error 2


More information about the Libraries mailing list