More changes to kind inference for type and class declarations
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 10 Jul 2012 15:02:03 +0000 (16:02 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 10 Jul 2012 15:02:03 +0000 (16:02 +0100)
commit3fe3ef509627cb8c9aa7751beb44d1b4408f8b22
treed0cc7a56e21423112cfa77b9bd06f4c5ee765d32
parentcdcd07492f16faaeb51dff75d4f4199dd91797cb
More changes to kind inference for type and class declarations

These should fix #7024 and #7022, among others.

The main difficulty was that we were getting occ-name clashes
between kind and type variables in TyCons, when spat into an
interface file. The new scheme is to tidy TyCons during the
conversoin into IfaceSyn, rather than trying to generate them
pre-tidied, which was the already-unsatisfactory previous plan.

There is the usual wave of refactorig as well.
compiler/iface/MkIface.lhs
compiler/typecheck/TcHsType.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcRnTypes.lhs
compiler/typecheck/TcRules.lhs
compiler/typecheck/TcTyClsDecls.lhs
compiler/types/Kind.lhs