add GHC.HetMet.{hetmet_kappa,hetmet_kappa_app}
[ghc-base.git] / Data / Int.hs
index 7b57ae4..c9c9036 100644 (file)
@@ -1,4 +1,5 @@
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# LANGUAGE CPP, NoImplicitPrelude #-}
+
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Data.Int
 
 module Data.Int
   ( 
-       -- * Signed integer types
-       Int,
-       Int8, Int16, Int32, Int64,
+        -- * Signed integer types
+        Int,
+        Int8, Int16, Int32, Int64,
 
-       -- * Notes
+        -- * Notes
 
-       -- $notes
-       ) where
+        -- $notes
+        ) where
 
 #ifdef __GLASGOW_HASKELL__
-import GHC.Int
+import GHC.Base ( Int )
+import GHC.Int  ( Int8, Int16, Int32, Int64 )
+#endif
+
+#ifdef __HUGS__
+import Hugs.Int ( Int8, Int16, Int32, Int64 )
+#endif
+
+#ifdef __NHC__
+import Prelude
+import Prelude (Int)
+import NHC.FFI (Int8, Int16, Int32, Int64)
+import NHC.SizedTypes (Int8, Int16, Int32, Int64)       -- instances of Bits
 #endif
 
 {- $notes
@@ -33,15 +46,15 @@ import GHC.Int
 * All arithmetic is performed modulo 2^n, where @n@ is the number of
   bits in the type.
 
-* For coercing between any two integer types, use 'fromIntegral',
+* For coercing between any two integer types, use 'Prelude.fromIntegral',
   which is specialized for all the common cases so should be fast
   enough.  Coercing word types (see "Data.Word") to and from integer
   types preserves representation, not sign.
 
-* The rules that hold for 'Enum' instances over a
+* The rules that hold for 'Prelude.Enum' instances over a
   bounded type such as 'Int' (see the section of the
   Haskell report dealing with arithmetic sequences) also hold for the
-  'Enum' instances over the various
+  'Prelude.Enum' instances over the various
   'Int' types defined here.
 
 * Right and left shifts by amounts greater than or equal to the width