X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fprelude%2FPrelVals.lhs;h=9ae53002c9f468348bf5dc2a94f0273a8a5d418a;hb=e7498a3ee1d0484d02a9e86633cc179c76ebf36e;hp=0ce975e5ef67ded75bc39eb25ee0a1be2f46d847;hpb=dabfa71f33eabc5a2d10959728f772aa016f1c84;p=ghc-hetmet.git diff --git a/ghc/compiler/prelude/PrelVals.lhs b/ghc/compiler/prelude/PrelVals.lhs index 0ce975e..9ae5300 100644 --- a/ghc/compiler/prelude/PrelVals.lhs +++ b/ghc/compiler/prelude/PrelVals.lhs @@ -8,10 +8,10 @@ module PrelVals where -import Ubiq -import IdLoop ( UnfoldingGuidance(..) ) +IMP_Ubiq() +IMPORT_DELOOPER(IdLoop) ( UnfoldingGuidance(..) ) import Id ( Id(..), GenId, mkPreludeId, mkTemplateLocals ) -import PrelLoop +IMPORT_DELOOPER(PrelLoop) -- friends: import PrelMods @@ -24,7 +24,7 @@ import IdInfo -- quite a bit import Literal ( mkMachInt ) import PrimOp ( PrimOp(..) ) import SpecEnv ( SpecEnv(..), nullSpecEnv ) -import TyVar ( alphaTyVar, betaTyVar, gammaTyVar ) +import TyVar ( openAlphaTyVar, alphaTyVar, betaTyVar, gammaTyVar ) import Unique -- lots of *Keys import Util ( panic ) \end{code} @@ -97,7 +97,7 @@ pAR_ERROR_ID (mkSigmaTy [alphaTyVar] [] alphaTy) noIdInfo errorTy :: Type -errorTy = mkSigmaTy [alphaTyVar] [] (mkFunTys [mkListTy charTy] alphaTy) +errorTy = mkSigmaTy [openAlphaTyVar] [] (mkFunTys [mkListTy charTy] alphaTy) \end{code} We want \tr{_trace} (NB: name not in user namespace) to be wired in @@ -481,16 +481,12 @@ lex :: ReadS String %************************************************************************ %* * -\subsection[PrelVals-void]{@void#@: Magic value of type @Void#@} +\subsection[PrelVals-void]{@void@: Magic value of type @Void@} %* * %************************************************************************ -I don't think this is available to the user; it's used in the -simplifier (WDP 94/06). \begin{code} -voidPrimId - = pcMiscPrelId voidPrimIdKey pRELUDE_BUILTIN SLIT("void#") - voidPrimTy noIdInfo +voidId = pcMiscPrelId voidIdKey pRELUDE_BUILTIN SLIT("_void") voidTy noIdInfo \end{code} %************************************************************************