No deferred type errors under a forall
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 3 Jan 2018 10:51:18 +0000 (10:51 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 3 Jan 2018 11:26:20 +0000 (11:26 +0000)
commit298ec78c8832b391c19d662576e59c3e16bd43b0
treeb37bb597b4e5c313e93f391d151389d6f30aba08
parentbd438b2d67ec8f5d8ac8472f13b3175b569951b9
No deferred type errors under a forall

As Trac #14605 showed, we can't defer a type error under a
'forall' (when unifying two forall types).

The fix is simple.
compiler/typecheck/TcErrors.hs
docs/users_guide/glasgow_exts.rst
testsuite/tests/typecheck/should_fail/T14605.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T14605.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T