FIX read040: patterns with type sig on LHS of do-binding
authorsimonpj@microsoft.com <unknown>
Thu, 21 Jun 2007 14:37:21 +0000 (14:37 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 21 Jun 2007 14:37:21 +0000 (14:37 +0000)
commitbb511e2deeb63e4b1a92b033283cd63de3e5a27c
treeba2984b475e435790bac658f2036ae2d175d5da4
parente7158cc7c9e32fa65a3f1489fbd4760dbaae9a9d
FIX read040: patterns with type sig on LHS of do-binding

f () = do { x :: Bool <- return True; ... }

For some reason the production for 'pat' required 'infixexp' on the
LHS of a do-notation binding.  This patch makes it an 'exp', which
thereby allows an expression with a type sig.

Happily, there are no new shift-reduce errors, so I don't think this
will break anything else.
compiler/parser/Parser.y.pp