Fix Trac #12797: approximateWC
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 2 Nov 2016 11:53:21 +0000 (11:53 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 2 Nov 2016 11:54:55 +0000 (11:54 +0000)
commit13508bad4810d4fa8581afbcb4f41c97fe4c92e2
tree1458a0896f954512ccd4e096aabe5c43d2b9a95b
parentf4a14d6c535bdf52b19f441fe185ea13d62fdc24
Fix Trac #12797: approximateWC

This patch makes approximateWC a bit more gung-ho when called
from the defaulting code.  See Note [ApproximateWC], item (1).
compiler/typecheck/TcSimplify.hs
testsuite/tests/typecheck/should_compile/T12797.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T