|
GHC.Num | Portability | non-portable (GHC Extensions) | Stability | internal | Maintainer | cvs-ghc@haskell.org |
|
|
|
|
|
Description |
The Num class and the Integer type.
|
|
Synopsis |
|
| | class (Eq a, Show a) => Num a where | | | | | | | class (Eq a, Show a) => Num a where | | | 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 | | | 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 | | | 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 | | | subtract :: (Num a) => a -> a -> a | | zeroInteger :: Integer | | class (Eq a, Show a) => Num a where | | | class (Eq a, Show a) => Num a where | | | class (Eq a, Show a) => Num a where | |
|
|
Documentation |
|
data Integer |
Arbitrary-precision integers. | Constructors | S# Int# | | J# Int# ByteArray# | |
| Instances | |
|
|
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 | |
|
|
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 |