\begin{code}
interface TyLoop where
-import PreludePS(_PackedString)
+--import PreludePS(_PackedString)
+import FastString (FastString)
import PreludeStdIO ( Maybe )
import Unique ( Unique )
-import Id ( Id, GenId, StrictnessMark, mkTupleCon, mkDataCon,
- dataConSig, getInstantiatedDataConSig )
+import FieldLabel ( FieldLabel )
+import Id ( Id, GenId, StrictnessMark, mkDataCon, mkTupleCon,
+ isNullaryDataCon, dataConArgTys, idType )
+import TysWiredIn ( tupleCon, tupleTyCon )
import PprType ( specMaybeTysSuffix )
-import NameTypes ( FullName )
+import Name ( Name )
import TyCon ( TyCon )
import TyVar ( GenTyVar, TyVar )
-import Type ( GenType, Type )
+import Type ( splitSigmaTy, splitFunTy, GenType, Type )
import Usage ( GenUsage )
import Class ( Class, GenClass )
+import TysPrim ( voidTy )
data GenId ty
data GenType tyvar uvar
type Id = GenId (GenType (GenTyVar (GenUsage Unique)) Unique)
-- Needed in TyCon
-mkTupleCon :: Int -> Id
-dataConSig :: Id -> ([TyVar], [(Class, Type)], [Type], TyCon)
-specMaybeTysSuffix :: [Maybe Type] -> _PackedString
+tupleCon :: Int -> Id
+isNullaryDataCon :: Id -> Bool
+specMaybeTysSuffix :: [Maybe Type] -> FastString
+idType :: Id -> Type
+splitSigmaTy :: GenType t u -> ([t], [(Class,GenType t u)], GenType t u)
+splitFunTy :: GenType t u -> ([GenType t u], GenType t u)
instance Eq (GenClass a b)
-- Needed in Type
-getInstantiatedDataConSig :: Id -> [Type] -> ([Type],[Type],Type)
+tupleTyCon :: Int -> TyCon
+dataConArgTys :: Id -> [Type] -> [Type]
+voidTy :: Type
-- Needed in TysWiredIn
data StrictnessMark = MarkedStrict | NotMarkedStrict
-mkDataCon :: Unique -> FullName -> [StrictnessMark]
+mkDataCon :: Name -> [StrictnessMark] -> [FieldLabel]
-> [TyVar] -> [(Class,Type)] -> [Type] -> TyCon
-> Id
+mkTupleCon :: Int -> Name -> Type -> Id
\end{code}