Integer package:ghc-bignum

The Integer type.
Arbitrary precision integers. In contrast with fixed-size integral types such as Int, the Integer type represents the entire infinite range of integers. Integers are stored in a kind of sign-magnitude form, hence do not expect two's complement form when using bit operations. If the value is small (i.e., fits into an Int), the IS constructor is used. Otherwise IP and IN constructors are used to store a BigNat representing the positive or the negative value magnitude, respectively. Invariant: IP and IN are used iff the value does not fit in IS.
Compute absolute value of an Integer
Add two Integers
Bitwise AND operation Fake 2's complement for negative values (might be slow)
Integer for which only n-th bit is set
Positive Integer for which only n-th bit is set
Check Integer invariants
Check Integer invariants
Compare two Integer
Binary complement of the
Decode a Double# into (# Integer mantissa, Int# exponent #)
Simultaneous integerDiv and integerMod. Divisor must be non-zero otherwise the GHC runtime will terminate with a division-by-zero fault.
Simultaneous integerDiv and integerMod. Divisor must be non-zero otherwise the GHC runtime will terminate with a division-by-zero fault.
Encode (Integer mantissa, Int exponent) into a Double