Do not use defaulting in ambiguity check
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 21 Apr 2016 12:03:29 +0000 (13:03 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 22 Apr 2016 10:32:24 +0000 (11:32 +0100)
commitedf54d72b5b8a6dd0deafa036dc16dcfc3fcb29f
tree08d2816f8f3bd349bdea89eeadb655cfda80c26b
parentf02af79e71f0383cf16b9d7c89691578ab77fa1c
Do not use defaulting in ambiguity check

This fixes Trac #11947.  See TcSimplify
Note [No defaulting in the ambiguity check]
compiler/typecheck/TcSimplify.hs
testsuite/tests/typecheck/should_compile/T11947.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_fail/T11947a.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T11947a.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T