Fix Trac #2111: improve error handling for 'rec' in do-notation
authorsimonpj@microsoft.com <unknown>
Tue, 26 Feb 2008 17:56:35 +0000 (17:56 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 26 Feb 2008 17:56:35 +0000 (17:56 +0000)
commit58de6cb725982dd1f57803cc838f233d5fd9c42c
treee787e4b311be682643d8a10b1d2ef1ed6a48af7b
parent550bd53be2ca1241a46517187d64fb0d077aeda0
Fix Trac #2111: improve error handling for 'rec' in do-notation

We were not dealing correctly with all the combinations of
do notation
mdo notation
arrow notation
in combination with 'rec' Stmts.

I think this patch sorts it out.
compiler/rename/RnExpr.lhs
compiler/typecheck/TcMatches.lhs