Integer package:ghc-internal

Compatibility module for pre ghc-bignum code.
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.
123. Used for overloaded and non-overloaded literals. We don't have a good way to represent non-overloaded literals at the moment. Maybe that doesn't matter?
Converts a positive integer to a floating-point value. The value nearest to the argument will be returned. If there are two such values, the one with an even significand will be returned (i.e. IEEE roundTiesToEven). The argument must be strictly positive, and floatRadix (undefined :: a) must be 2.
Convert an Integer to a Double#
Convert an Integer to a Float#
Used to implement abs for the Num typeclass. This gives the absolute value of whatever integer is passed into it.

Example

>>> absInteger (-6)
6
>>> abs (-6)
6