[project @ 2005-08-11 08:04:33 by simonpj]
authorsimonpj <unknown>
Thu, 11 Aug 2005 08:04:34 +0000 (08:04 +0000)
committersimonpj <unknown>
Thu, 11 Aug 2005 08:04:34 +0000 (08:04 +0000)
commit89627230a1b0e25a148621509d19297454f692eb
tree5d5f907b351ff2d88fe92e15d3446327c3f6619b
parent70cfef77ff00fbd4a57f733045e62ce0a7ba1307
[project @ 2005-08-11 08:04:33 by simonpj]
Do 'tidying' on Kinds before printing them.  This avoids printing
stuff like 'k_43b' in user error messages.

To do this, I ended up adding an OccName to Kind.KindVar.  Even
then the implementation is a bit of hack (see comments with
Type.tidyKind).  Still, it's a highly localised hack, whereas the
"right thing" entails making KindVar into a flavour of Var, which
seems like an uncomfortably big change.

   I think this change can merge to the stable branch
ghc/compiler/typecheck/TcMType.lhs
ghc/compiler/typecheck/TcType.lhs
ghc/compiler/typecheck/TcUnify.lhs
ghc/compiler/types/Kind.lhs
ghc/compiler/types/Type.lhs