Fix #11716.
authorRichard Eisenberg <eir@cis.upenn.edu>
Wed, 16 Mar 2016 19:20:32 +0000 (15:20 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Thu, 17 Mar 2016 14:07:22 +0000 (10:07 -0400)
commit3fe87aa00ac05f1abea22ea58d51ecc1e3073d19
treee61fa1246d65ddc37261218c7f9f4a6d87652e07
parentc5ed41cbcaa40068763c8bd01badcada38cdbd03
Fix #11716.

There were several smallish bugs here:
 - We had too small an InScopeSet when rejigging GADT return types.
 - When adding the extra_tvs with a datatype kind signature, we
   were sometimes changing Uniques of an explicitly bound kind var.
 - Using coercionKind in the flattener got the wrong visibility
   for a binder. Now we just zonk to get what we need.

Test case: dependent/should_compile/RaeJobTalk
compiler/typecheck/TcCanonical.hs
compiler/typecheck/TcFlatten.hs
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcPat.hs
compiler/typecheck/TcTyClsDecls.hs
compiler/typecheck/TcType.hs
testsuite/tests/dependent/should_compile/RaeJobTalk.hs [new file with mode: 0644]
testsuite/tests/dependent/should_compile/all.T