Remove the incredibly hairy splitTelescopeTvs.
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 26 Apr 2016 14:50:33 +0000 (10:50 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Fri, 29 Apr 2016 13:01:42 +0000 (09:01 -0400)
commitc5919f75afab9dd6f0a4a2670402024cece5da57
tree8b4f4b5310705b4665b3b7599dad3de77e2caaa3
parenta2970f883d1018107f745531aab56e872311d8c7
Remove the incredibly hairy splitTelescopeTvs.

This patch removes splitTelescopeTvs by adding information about
scoped type variables to TcTyCon. Vast simplification!

This also fixes #11821 by bringing only unzonked vars into scope.

Test case: polykinds/T11821
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcMType.hs
compiler/typecheck/TcTyClsDecls.hs
compiler/typecheck/TcValidity.hs
compiler/types/TyCon.hs
testsuite/tests/ghci/scripts/T7873.stderr
testsuite/tests/polykinds/T11821.hs [new file with mode: 0644]
testsuite/tests/polykinds/all.T