Improve rejigConRes (again)
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 11 Sep 2015 14:54:39 +0000 (15:54 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 11 Sep 2015 16:03:16 +0000 (17:03 +0100)
commita870738a3b34d264c63656783e84168a230d7da4
tree4883c98989c3e8c5f3736b4047f4c142ad63834e
parent3a71d78156ed9422b7642bfbd665978ea3de7f89
Improve rejigConRes (again)

I think this patch finally works around the delicacy in the strictness
of TcTyClsDecls.rejigConRes.   See the notes with that function and
Note [Checking GADT return types].

As a result, we fix Trac #10836, and improve Trac #7175
compiler/typecheck/TcTyClsDecls.hs
testsuite/tests/typecheck/should_fail/T7175.stderr
testsuite/tests/typecheck/should_fail/all.T