import Storable
import CTypes
import FastString
+import GlaExts ( Int(..) )
+import Module ( moduleNameFS )
#endif
-import TyCon ( TyCon, isDataTyCon, tyConFamilySize, tyConDataCons )
-import Class ( Class, classTyCon )
+import TyCon ( TyCon, isDataTyCon, tyConDataCons, tyConFamilySize )
+import Class ( Class )
import InterpSyn
import StgSyn
import Addr
import RdrName ( RdrName, rdrNameModule, rdrNameOcc )
-import OccName ( occNameString )
import FiniteMap
import Panic ( panic )
-import PrelAddr
+import OccName ( occNameString )
+
-- ---------------------------------------------------------------------------
-- Environments needed by the linker
-- HACK!!! ToDo: cleaner
rdrNameToCLabel :: RdrName -> String{-suffix-} -> String
rdrNameToCLabel rn suffix =
- _UNPK_(rdrNameModule rn) ++ '_':occNameString(rdrNameOcc rn) ++ '_':suffix
+ _UNPK_(moduleNameFS (rdrNameModule rn))
+ ++ '_':occNameString(rdrNameOcc rn) ++ '_':suffix
linkAlgAlts ie ce = map (linkAlgAlt ie ce)
linkAlgAlt ie ce (AltAlg tag args rhs) = AltAlg tag args (linkIExpr ie ce rhs)