GHC.Num

| Haskell Core Libraries (base package) | Parent | Contents | Index
GHC.Num |
Portability | non-portable (GHC Extensions)
Stability | internal
Maintainer | cvs-ghc@haskell.org
Description
The `Num` class and the `Integer` type.
Synopsis
data Integer
= S# Int#
| J# Int# ByteArray#
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
data Integer
= S# Int#
| J# Int# ByteArray#
data Integer
= S# Int#
| J# Int# ByteArray#
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
divExact :: Integer -> Integer -> Integer
divModInt :: Int -> Int -> (Int, Int)
enumDeltaInteger :: Integer -> Integer -> [Integer]
enumDeltaIntegerFB :: (Integer -> b -> b) -> Integer -> Integer -> b
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
gcdInteger :: Integer -> Integer -> Integer
int2Integer :: Int -> Integer
integer2Int :: Integer -> Int
jtos :: Integer -> String -> String
lcmInteger :: Integer -> Integer -> Integer
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
quotInteger :: Integer -> Integer -> Integer
quotRemInt :: Int -> Int -> (Int, Int)
quotRemInteger :: Integer -> Integer -> (Integer, Integer)
remInteger :: Integer -> Integer -> Integer
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
subtract :: (Num a) => a -> a -> a
zeroInteger :: Integer
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
class (Eq a, Show a) => Num a where
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
Documentation
data Integer
Arbitrary-precision integers.
Constructors
S# Int# |
J# Int# ByteArray# |
Instances
Bits Integer
Typeable Integer
Arbitrary Integer
Ix Integer
Eq Integer
Ord Integer
Num Integer
Enum Integer
Show Integer
Read Integer
Real Integer
Integral Integer
Random Integer
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
Instances
(RealFloat a) => Num (Complex a)
Num Float
Num Double
Num Int8
Num Int16
Num Int32
Num Int64
Num Int
Num Integer
(Integral a) => Num (Ratio a)
Num Word
Num Word8
Num Word16
Num Word32
Num Word64
data Integer
Arbitrary-precision integers.
Constructors
S# Int# |
J# Int# ByteArray# |
data Integer
Arbitrary-precision integers.
Constructors
S# Int# |
J# Int# ByteArray# |
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
divExact :: Integer -> Integer -> Integer
divModInt :: Int -> Int -> (Int, Int)
enumDeltaInteger :: Integer -> Integer -> [Integer]
enumDeltaIntegerFB :: (Integer -> b -> b) -> Integer -> Integer -> b
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
gcdInteger :: Integer -> Integer -> Integer
int2Integer :: Int -> Integer
integer2Int :: Integer -> Int
jtos :: Integer -> String -> String
lcmInteger :: Integer -> Integer -> Integer
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
quotInteger :: Integer -> Integer -> Integer
quotRemInt :: Int -> Int -> (Int, Int)
quotRemInteger :: Integer -> Integer -> (Integer, Integer)
remInteger :: Integer -> Integer -> Integer
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
subtract :: (Num a) => a -> a -> a
zeroInteger :: Integer
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
class (Eq a, Show a) => Num a where
Methods
fromInteger :: Integer -> a
abs :: a -> a
signum :: a -> a
negate :: a -> a
(+) :: a -> a -> a
(-) :: a -> a -> a
(*) :: a -> a -> a
Produced by Haddock version 0.3