projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-03-14 15:22:51 by simonmar]
[ghc-base.git]
/
GHC
/
Int.hs
diff --git
a/GHC/Int.hs
b/GHC/Int.hs
index
025ebdb
..
e48656d
100644
(file)
--- a/
GHC/Int.hs
+++ b/
GHC/Int.hs
@@
-1,4
+1,4
@@
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS_GHC -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Int
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Int
@@
-15,6
+15,7
@@
#include "MachDeps.h"
#include "MachDeps.h"
+-- #hide
module GHC.Int (
Int8(..), Int16(..), Int32(..), Int64(..))
where
module GHC.Int (
Int8(..), Int16(..), Int32(..), Int64(..))
where
@@
-41,9
+42,6
@@
import GHC.Show
data Int8 = I8# Int# deriving (Eq, Ord)
-- ^ 8-bit signed integer type
data Int8 = I8# Int# deriving (Eq, Ord)
-- ^ 8-bit signed integer type
-instance CCallable Int8
-instance CReturnable Int8
-
instance Show Int8 where
showsPrec p x = showsPrec p (fromIntegral x :: Int)
instance Show Int8 where
showsPrec p x = showsPrec p (fromIntegral x :: Int)
@@
-150,9
+148,6
@@
instance Bits Int8 where
data Int16 = I16# Int# deriving (Eq, Ord)
-- ^ 16-bit signed integer type
data Int16 = I16# Int# deriving (Eq, Ord)
-- ^ 16-bit signed integer type
-instance CCallable Int16
-instance CReturnable Int16
-
instance Show Int16 where
showsPrec p x = showsPrec p (fromIntegral x :: Int)
instance Show Int16 where
showsPrec p x = showsPrec p (fromIntegral x :: Int)
@@
-505,9
+500,6
@@
instance Bits Int32 where
#endif
#endif
-instance CCallable Int32
-instance CReturnable Int32
-
instance Real Int32 where
toRational x = toInteger x % 1
instance Real Int32 where
toRational x = toInteger x % 1
@@
-779,9
+771,6
@@
instance Bits Int64 where
#endif
#endif
-instance CCallable Int64
-instance CReturnable Int64
-
instance Real Int64 where
toRational x = toInteger x % 1
instance Real Int64 where
toRational x = toInteger x % 1