X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fprelude%2FPrelInfo.lhs;fp=ghc%2Fcompiler%2Fprelude%2FPrelInfo.lhs;h=e62d66382731b4b2bc1b990efa571fd43dbc8046;hb=256f3fb8b794549227f7476cf3882f634c3e0e7a;hp=8c5ceb667c906589835f6aef6bf1b3ab7e95dafa;hpb=0075a4cd7eb75a28b4978255e696a9a583172355;p=ghc-hetmet.git diff --git a/ghc/compiler/prelude/PrelInfo.lhs b/ghc/compiler/prelude/PrelInfo.lhs index 8c5ceb6..e62d663 100644 --- a/ghc/compiler/prelude/PrelInfo.lhs +++ b/ghc/compiler/prelude/PrelInfo.lhs @@ -37,15 +37,13 @@ import MkId ( mkPrimOpId, wiredInIds ) import MkId -- All of it, for re-export import TysPrim ( primTyCons ) import TysWiredIn ( wiredInTyCons ) -import HscTypes ( TyThing(..) ) +import HscTypes ( TyThing(..), TypeEnv, mkTypeEnv ) -- others: -import Name ( getName, NameEnv, mkNameEnv ) import TyCon ( tyConDataConsIfAvailable, TyCon ) import Class ( Class, classKey ) import Type ( funTyCon ) import Util ( isIn ) -import Outputable ( ppr, pprPanic ) \end{code} %************************************************************************ @@ -77,8 +75,8 @@ wiredInTyConThings tc n <- [dataConId dc, dataConWrapId dc] ] -- Synonyms return empty list of constructors -wiredInThingEnv :: NameEnv TyThing -wiredInThingEnv = mkNameEnv [ (getName thing, thing) | thing <- wiredInThings ] +wiredInThingEnv :: TypeEnv +wiredInThingEnv = mkTypeEnv wiredInThings \end{code} We let a lot of "non-standard" values be visible, so that we can make