Move the kind Nat and Symbol out of TysPrim and into TysWiredIn
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 19 Dec 2012 17:35:51 +0000 (17:35 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 19 Dec 2012 17:35:51 +0000 (17:35 +0000)
commitaad93f5c9eb9d53cddf85019192ba0da6004d17e
tree257cd475eb97501cf121eda180a1459477fa8e88
parent8c1aab0d75ce7499408c5493cf4aacdb196fa915
Move the kind Nat and Symbol out of TysPrim and into TysWiredIn

They properly belong in TysWiredIn, since they are defined in Haskell
in GHC.TypeLits.

Moveover, make them WiredIn (again as they should be) and use
checkWiredInTyCon when encountering them in TcHsType.tc_hs_type,
so that the interface file is loaded.  This fixes Trac #7502.
compiler/prelude/PrelNames.lhs
compiler/prelude/TysPrim.lhs
compiler/prelude/TysWiredIn.lhs
compiler/prelude/TysWiredIn.lhs-boot
compiler/typecheck/TcHsType.lhs
compiler/types/Kind.lhs
compiler/types/Type.lhs