Add 'hadrian/' from commit '45f3bff7016a2a0cd9a5455a882ced984655e90b'
[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 -- A 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 eqInteger#, neqInteger#,
31 leInteger#, gtInteger#, ltInteger#, geInteger#,
32 divInteger, modInteger,
33 divModInteger, quotRemInteger, quotInteger, remInteger,
34 encodeFloatInteger, decodeFloatInteger, floatFromInteger,
35 encodeDoubleInteger, decodeDoubleInteger, doubleFromInteger,
36 -- gcdInteger, lcmInteger, -- XXX
37 andInteger, orInteger, xorInteger, complementInteger,
38 shiftLInteger, shiftRInteger, testBitInteger,
39 hashInteger,
40 ) where
41
42 import GHC.Integer.Type
43