| integer-0.1.0.1: Integer library based on GMP | Source code | Contents | Index

GHC.Integer

Portability | non-portable (GHC Extensions)
Stability | internal
Maintainer | cvs-ghc@haskell.org

Description
The `Integer` type.
Synopsis

data Integer
smallInteger :: Int# -> Integer
wordToInteger :: Word# -> Integer
integerToWord :: Integer -> Word#
toInt# :: Integer -> Int#
integerToWord64 :: Integer -> Word64#
word64ToInteger :: Word64# -> Integer
integerToInt64 :: Integer -> Int64#
int64ToInteger :: Int64# -> Integer
plusInteger :: Integer -> Integer -> Integer
minusInteger :: Integer -> Integer -> Integer
timesInteger :: Integer -> Integer -> Integer
negateInteger :: Integer -> Integer
eqInteger :: Integer -> Integer -> Bool
neqInteger :: Integer -> Integer -> Bool
absInteger :: Integer -> Integer
signumInteger :: Integer -> Integer
leInteger :: Integer -> Integer -> Bool
gtInteger :: Integer -> Integer -> Bool
ltInteger :: Integer -> Integer -> Bool
geInteger :: Integer -> Integer -> Bool
compareInteger :: Integer -> Integer -> Ordering
divModInteger :: Integer -> Integer -> (#Integer, Integer#)
quotRemInteger :: Integer -> Integer -> (#Integer, Integer#)
quotInteger :: Integer -> Integer -> Integer
remInteger :: Integer -> Integer -> Integer
encodeFloatInteger :: Integer -> Int# -> Float#
decodeFloatInteger :: Float# -> (#Integer, Int##)
floatFromInteger :: Integer -> Float#
encodeDoubleInteger :: Integer -> Int# -> Double#
decodeDoubleInteger :: Double# -> (#Integer, Int##)
doubleFromInteger :: Integer -> Double#
gcdInteger :: Integer -> Integer -> Integer
lcmInteger :: Integer -> Integer -> Integer
andInteger :: Integer -> Integer -> Integer
orInteger :: Integer -> Integer -> Integer
xorInteger :: Integer -> Integer -> Integer
complementInteger :: Integer -> Integer
hashInteger :: Integer -> Int#

Documentation

data Integer | Source

Arbitrary-precision integers.

smallInteger :: Int# -> Integer | Source

wordToInteger :: Word# -> Integer | Source

integerToWord :: Integer -> Word# | Source

toInt# :: Integer -> Int# | Source

integerToWord64 :: Integer -> Word64# | Source

word64ToInteger :: Word64# -> Integer | Source

integerToInt64 :: Integer -> Int64# | Source

int64ToInteger :: Int64# -> Integer | Source

plusInteger :: Integer -> Integer -> Integer | Source

minusInteger :: Integer -> Integer -> Integer | Source

timesInteger :: Integer -> Integer -> Integer | Source

negateInteger :: Integer -> Integer | Source

eqInteger :: Integer -> Integer -> Bool | Source

neqInteger :: Integer -> Integer -> Bool | Source

absInteger :: Integer -> Integer | Source

signumInteger :: Integer -> Integer | Source

leInteger :: Integer -> Integer -> Bool | Source

gtInteger :: Integer -> Integer -> Bool | Source

ltInteger :: Integer -> Integer -> Bool | Source

geInteger :: Integer -> Integer -> Bool | Source

compareInteger :: Integer -> Integer -> Ordering | Source

divModInteger :: Integer -> Integer -> (#Integer, Integer#) | Source

quotRemInteger :: Integer -> Integer -> (#Integer, Integer#) | Source

quotInteger :: Integer -> Integer -> Integer | Source

remInteger :: Integer -> Integer -> Integer | Source

encodeFloatInteger :: Integer -> Int# -> Float# | Source

decodeFloatInteger :: Float# -> (#Integer, Int##) | Source

floatFromInteger :: Integer -> Float# | Source

encodeDoubleInteger :: Integer -> Int# -> Double# | Source

decodeDoubleInteger :: Double# -> (#Integer, Int##) | Source

doubleFromInteger :: Integer -> Double# | Source

gcdInteger :: Integer -> Integer -> Integer | Source

lcmInteger :: Integer -> Integer -> Integer | Source

andInteger :: Integer -> Integer -> Integer | Source

orInteger :: Integer -> Integer -> Integer | Source

xorInteger :: Integer -> Integer -> Integer | Source

complementInteger :: Integer -> Integer | Source

hashInteger :: Integer -> Int# | Source

Produced by Haddock version 2.4.2