Fix #11974 by adding a more smarts to TcDefaults.
authorRichard Eisenberg <eir@cis.upenn.edu>
Sat, 23 Apr 2016 02:28:35 +0000 (22:28 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Thu, 23 Jun 2016 19:17:41 +0000 (15:17 -0400)
commit9a34bf1985035858ece043bf38b47b6ff4b88efb
treeced7886f40cb2f4f690cf062ffa2ba1d0dd02865
parent7f5d560377458f3ec328b9fc60a875d9b91e978e
Fix #11974 by adding a more smarts to TcDefaults.

Test cases:
  typecheck/should_compile/T11974
  typecheck/should_fail/T11974b
compiler/prelude/PrelNames.hs
compiler/typecheck/TcDefaults.hs
compiler/typecheck/TcSimplify.hs
testsuite/tests/typecheck/should_compile/T11974.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_fail/T11974b.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T11974b.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T