@@ -550,6 +550,7 @@ data Const = I Int | BI Integer | Fl Double | Ch Char | Str String
550550 | B8V (Vector Word8) | B16V (Vector Word16)
551551 | B32V (Vector Word32) | B64V (Vector Word64)
552552 | AType ArithTy | StrType
553+ | WorldType | TheWorld
553554 | PtrType | ManagedPtrType | BufferType | VoidType | Forgot
554555 deriving (Eq, Ord, Data, Typeable)
555556{-!
@@ -562,6 +563,7 @@ isTypeConst (AType _) = True
562563isTypeConst StrType = True
563564isTypeConst ManagedPtrType = True
564565isTypeConst BufferType = True
566+isTypeConst WorldType = True
565567isTypeConst PtrType = True
566568isTypeConst VoidType = True
567569isTypeConst _ = False
@@ -577,6 +579,8 @@ instance Pretty Const OutputAnnotation where
577579 pretty (Str s) = text s
578580 pretty (AType a) = pretty a
579581 pretty StrType = text "String"
582+ pretty TheWorld = text "%theWorld"
583+ pretty WorldType = text "prim__World"
580584 pretty BufferType = text "prim__UnsafeBuffer"
581585 pretty PtrType = text "Ptr"
582586 pretty ManagedPtrType = text "Ptr"
@@ -1266,6 +1270,8 @@ instance Show Const where
12661270 show (AType (ATInt ITChar)) = "Char"
12671271 show (AType (ATInt (ITFixed it))) = itBitsName it
12681272 show (AType (ATInt (ITVec it c))) = itBitsName it ++ "x" ++ show c
1273+ show TheWorld = "prim__TheWorld"
1274+ show WorldType = "prim__WorldType"
12691275 show StrType = "String"
12701276 show BufferType = "prim__UnsafeBuffer"
12711277 show PtrType = "Ptr"