Fix Trac #2490: sections should be parenthesised
authorsimonpj@microsoft.com <unknown>
Tue, 12 Aug 2008 08:23:32 +0000 (08:23 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 12 Aug 2008 08:23:32 +0000 (08:23 +0000)
commit83256c875683894a93cf4468947ccf11c65577ca
treec24f021abe49480399cc2b8b6b8acb4c761191e3
parent7b9ccfe6947e4ef514057668d6f6673c3fedc10d
Fix Trac #2490: sections should be parenthesised

When I added bang patterns I had to slightly generalise where the
parser would recognise sections.  See Note [Parsing sections] in
parser.y.pp.

I forgot to check that ordinary H98 sections obey the original
rules.  This patch adds the check.
compiler/parser/Parser.y.pp
compiler/rename/RnExpr.lhs