@@ -550,6 +550,7 @@ data Const = I Int | BI Integer | Fl Double | Ch Char | Str String
550 | B8V (Vector Word8) | B16V (Vector Word16)
550 | B8V (Vector Word8) | B16V (Vector Word16)
551 | B32V (Vector Word32) | B64V (Vector Word64)
551 | B32V (Vector Word32) | B64V (Vector Word64)
552 | AType ArithTy | StrType
552 | AType ArithTy | StrType
553+ | WorldType | TheWorld
553 | PtrType | ManagedPtrType | BufferType | VoidType | Forgot
554 | PtrType | ManagedPtrType | BufferType | VoidType | Forgot
554 deriving (Eq, Ord, Data, Typeable)
555 deriving (Eq, Ord, Data, Typeable)
@@ -562,6 +563,7 @@ isTypeConst (AType _) = True
562isTypeConst StrType = True
563isTypeConst StrType = True
563isTypeConst ManagedPtrType = True
564isTypeConst ManagedPtrType = True
564isTypeConst BufferType = True
565isTypeConst BufferType = True
566+isTypeConst WorldType = True
565isTypeConst PtrType = True
567isTypeConst PtrType = True
566isTypeConst VoidType = True
568isTypeConst VoidType = True
567isTypeConst _ = False
569isTypeConst _ = False
@@ -577,6 +579,8 @@ instance Pretty Const OutputAnnotation where
577 pretty (Str s) = text s
579 pretty (Str s) = text s
578 pretty (AType a) = pretty a
580 pretty (AType a) = pretty a
579 pretty StrType = text "String"
581 pretty StrType = text "String"
582+ pretty TheWorld = text "%theWorld"
583+ pretty WorldType = text "prim__World"
580 pretty BufferType = text "prim__UnsafeBuffer"
584 pretty BufferType = text "prim__UnsafeBuffer"
581 pretty PtrType = text "Ptr"
585 pretty PtrType = text "Ptr"
582 pretty ManagedPtrType = text "Ptr"
586 pretty ManagedPtrType = text "Ptr"
@@ -1266,6 +1270,8 @@ instance Show Const where
1266 show (AType (ATInt ITChar)) = "Char"
1270 show (AType (ATInt ITChar)) = "Char"
1267 show (AType (ATInt (ITFixed it))) = itBitsName it
1271 show (AType (ATInt (ITFixed it))) = itBitsName it
1268 show (AType (ATInt (ITVec it c))) = itBitsName it ++ "x" ++ show c
1272 show (AType (ATInt (ITVec it c))) = itBitsName it ++ "x" ++ show c
1273+ show TheWorld = "prim__TheWorld"
1274+ show WorldType = "prim__WorldType"
1269 show StrType = "String"
1275 show StrType = "String"
1270 show BufferType = "prim__UnsafeBuffer"
1276 show BufferType = "prim__UnsafeBuffer"
1271 show PtrType = "Ptr"
1277 show PtrType = "Ptr"