Fix Trac #745: improve error recoevery for type signatures
authorsimonpj@microsoft.com <unknown>
Wed, 27 Aug 2008 15:33:22 +0000 (15:33 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 27 Aug 2008 15:33:22 +0000 (15:33 +0000)
commitba16e1bfde86cc6d8fafa9be8a33b3b6172f262f
treecb457c1a9eaf27388e2bb3eb1f3e8e5ab3cd7452
parent93f3bbbece9f46811946d9de10a90f6c7a2114d6
Fix Trac #745: improve error recoevery for type signatures

It turns out that fixing Trac #745 is easy using mapAndRecoverM,
and tidies up the code nicely in several places.  Hurrah.
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcTyClsDecls.lhs