4122d382fd16ecc592b1361ad89e7d1da68bf404
[ghc.git] / libraries / integer-simple / GHC / Integer.hs
1
2 {-# LANGUAGE CPP, MagicHash, NoImplicitPrelude #-}
3
4 -----------------------------------------------------------------------------
5 -- |
6 -- Module : GHC.Integer
7 -- Copyright : (c) Ian Lynagh 2007-2012
8 -- License : BSD3
9 --
10 -- Maintainer : igloo@earth.li
11 -- Stability : internal
12 -- Portability : non-portable (GHC Extensions)
13 --
14 -- An simple definition of the 'Integer' type.
15 --
16 -----------------------------------------------------------------------------
17
18 #include "MachDeps.h"
19
20 module GHC.Integer (
21 Integer, mkInteger,
22 smallInteger, wordToInteger, integerToWord, integerToInt,
23 #if WORD_SIZE_IN_BITS < 64
24 integerToWord64, word64ToInteger,
25 integerToInt64, int64ToInteger,
26 #endif
27 plusInteger, minusInteger, timesInteger, negateInteger,
28 eqInteger, neqInteger, absInteger, signumInteger,
29 leInteger, gtInteger, ltInteger, geInteger, compareInteger,
30 divInteger, modInteger,
31 divModInteger, quotRemInteger, quotInteger, remInteger,
32 encodeFloatInteger, decodeFloatInteger, floatFromInteger,
33 encodeDoubleInteger, decodeDoubleInteger, doubleFromInteger,
34 -- gcdInteger, lcmInteger, -- XXX
35 andInteger, orInteger, xorInteger, complementInteger,
36 shiftLInteger, shiftRInteger,
37 hashInteger,
38 ) where
39
40 import GHC.Integer.Type
41