Improve error handling in TcRnMonad
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 5 Oct 2016 21:00:02 +0000 (22:00 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 5 Oct 2016 21:00:57 +0000 (22:00 +0100)
commit465c6c5d15f8fb54afb78408f3a79e75e74d2cd4
tree9841c9de4060ffc51729368a9a66acb167fbbaa0
parente4cf962385924004b1ca0e39566222661bdde51f
Improve error handling in TcRnMonad

See Note [Constraints and errors] in TcRnMonad.  This
patch fixes Trac #12124 in quite a neat way.
compiler/typecheck/TcRnMonad.hs
compiler/typecheck/TcSplice.hs
testsuite/tests/typecheck/should_fail/CustomTypeErrors02.stderr
testsuite/tests/typecheck/should_fail/T12124.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T12124.srderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T12124.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T8142.stderr
testsuite/tests/typecheck/should_fail/all.T