Move zonkWC to the right place in simplfyInfer
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 31 Jan 2018 11:35:33 +0000 (11:35 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 31 Jan 2018 11:35:33 +0000 (11:35 +0000)
commite7c3878dacbad8120aacbe4423857b5ca9b43eb4
tree05fafd74bf4db47918e642bb87afe959ee1f32ed
parent47031db4ba0677ede438526770ab23908257fc5c
Move zonkWC to the right place in simplfyInfer

runTcSWithEvBinds does some unification, so the zonkWC
must be after, not before!  Yikes.  An outright bug.

This fixes Trac #14715.
compiler/typecheck/TcSimplify.hs
testsuite/tests/partial-sigs/should_compile/T14715.hs [new file with mode: 0644]
testsuite/tests/partial-sigs/should_compile/T14715.stderr [new file with mode: 0644]
testsuite/tests/partial-sigs/should_compile/all.T