Literate scripts not handled correctly
Simon Marlow
simonmar@microsoft.com
Tue, 18 Sep 2001 12:48:45 +0100
> The definitions of foo and bar are not at the same indentation level,
> so they are being rejected by the layout rule. At least, hugs and
> nhc98 accept it if you indent bar by two spaces, ghc still complains:
>=20
> ghc -c lit.lhs
> lit.lhs:9: parse error on input `_'
Then I think hugs and nhc98 are wrong. The report states that the
unliterate version of the file is recovered by "taking only those lines
beginning with '>', and removing the first character of those lines",
which would leave the lines indented by a single space, not two.
Cheers,
Simon