The Hugs-GHC Extension Libraries : Int
Previous: Word
Next: Addr

6. Int

This library provides signed integers of various sizes. The types supported are as follows:


type number of bits


Int8 8
Int16 16
Int32 32
Int64 64

For each type I above, we provide the following instances.

data I            -- Signed Ints
iToInt            :: I -> Int  -- not provided for Int64
intToi            :: Int -> I  -- not provided for Int64
instance Eq       I
instance Ord      I
instance Show     I
instance Read     I
instance Bounded  I
instance Num      I
instance Real     I
instance Integral I
instance Enum     I
instance Ix       I
instance Bits     I
Plus
int8ToInt  :: Int8  -> Int
intToInt8  :: Int   -> Int8
int16ToInt :: Int16 -> Int
intToInt16 :: Int   -> Int16
int32ToInt :: Int32 -> Int
intToInt32 :: Int   -> Int32


The Hugs-GHC Extension Libraries : Int
Previous: Word
Next: Addr