[project @ 1999-09-06 14:36:03 by simonmar]
authorsimonmar <unknown>
Mon, 6 Sep 1999 14:38:41 +0000 (14:38 +0000)
committersimonmar <unknown>
Mon, 6 Sep 1999 14:38:41 +0000 (14:38 +0000)
fromInt stuff

ghc/compiler/deSugar/DsForeign.lhs
ghc/compiler/simplCore/ConFold.lhs
ghc/compiler/typecheck/TcGenDeriv.lhs

index f0370b8..b5a1154 100644 (file)
@@ -43,6 +43,10 @@ import TysWiredIn    ( unitTyCon, addrTy, stablePtrTyCon,
                        )
 import Unique
 import Outputable
+
+#if __GLASGOW_HASKELL__ >= 404
+import GlaExts         ( fromInt )
+#endif
 \end{code}
 
 Desugaring of @foreign@ declarations is naturally split up into
index a96758f..fe8186f 100644 (file)
@@ -28,6 +28,10 @@ import Type          ( splitTyConApp_maybe )
 import Maybes          ( maybeToBool )
 import Char            ( ord, chr )
 import Outputable
+
+#if __GLASGOW_HASKELL__ >= 404
+import GlaExts         ( fromInt )
+#endif
 \end{code}
 
 \begin{code}
index 28ae0d9..ebb0144 100644 (file)
@@ -65,6 +65,10 @@ import Maybes                ( maybeToBool )
 import Constants
 import List            ( partition, intersperse )
 import Char            ( isAlpha )
+
+#if __GLASGOW_HASKELL__ >= 404
+import GlaExts         ( fromInt )
+#endif
 \end{code}
 
 %************************************************************************