Fix tcTyClTyVars to handle SigTvs
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 15 Dec 2015 18:47:14 +0000 (13:47 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Thu, 17 Dec 2015 17:58:29 +0000 (12:58 -0500)
commitae86eb9f72fa7220fe47ac54d6d21395691c1308
tree9a7158600971c7ae411ec0100459372689c3050f
parent1b6323b3ad576ef1806170d8cea871038b51de5e
Fix tcTyClTyVars to handle SigTvs

Previously, tcTyClTyVars required that the names of the LHsQTyVars
matched up exactly with the names of the kind of the given TyCon.
It now does a bit of matching up when necessary to relax this
restriction.

This commit enables a few tests that had previously been disabled.

The shortcoming this addresses is discussed in #11203, but that
ticket is not directly addressed here.

Test case: polykinds/SigTvKinds, perf/compiler/T9872d
compiler/typecheck/TcHsType.hs
testsuite/tests/perf/compiler/all.T
testsuite/tests/polykinds/all.T