Fix inference of partial signatures
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Nov 2016 11:35:50 +0000 (11:35 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Nov 2016 17:46:50 +0000 (17:46 +0000)
commit1bfff60fc57cd564382b86bdfb1f2764ca15d44f
tree44c82903fd11a6a51f8fb7dfd5cbc054917d09da
parenteb55ec2941239dee05afc6be818b129efe51660e
Fix inference of partial signatures

When we had
  f :: ( _ ) => blah
we were failing to call growThetaTyVars, as we do in the
no-type-signature case, and that meant that we weren't generalising
over the right type variables.  I'm quite surprised this didn't cause
problems earlier.

Anyway Trac #12844 showed it up and this patch fixes it
compiler/typecheck/TcBinds.hs
testsuite/tests/partial-sigs/should_compile/T12844.hs [new file with mode: 0644]
testsuite/tests/partial-sigs/should_compile/T12844.stderr [new file with mode: 0644]
testsuite/tests/partial-sigs/should_compile/all.T