|
GHC.Enum | Portability | non-portable (GHC extensions) | Stability | internal | Maintainer | cvs-ghc@haskell.org |
|
|
|
|
|
Description |
The Enum and Bounded classes.
|
|
|
|
class Bounded a where |
| Methods | minBound :: a | | maxBound :: a |
| | Instances | Bounded () | (Bounded a, Bounded b) => Bounded (a, b) | (Bounded a, Bounded b, Bounded c) => Bounded (a, b, c) | (Bounded a, Bounded b, Bounded c, Bounded d) => Bounded (a, b, c, d) | Bounded Bool | Bounded Ordering | Bounded Char | Bounded Int | Bounded Int8 | Bounded Int16 | Bounded Int32 | Bounded Int64 | Bounded Word | Bounded Word8 | Bounded Word16 | Bounded Word32 | Bounded Word64 |
|
|
|
class Enum a where |
| Methods | enumFromThenTo :: a -> a -> a -> [a] | | enumFromTo :: a -> a -> [a] | | enumFromThen :: a -> a -> [a] | | enumFrom :: a -> [a] | | fromEnum :: a -> Int | | toEnum :: Int -> a | | succ :: a -> a | | pred :: a -> a |
| | Instances | |
|
|
boundedEnumFrom :: (Enum a, Bounded a) => a -> [a] |
|
boundedEnumFromThen :: (Enum a, Bounded a) => a -> a -> [a] |
|
Produced by Haddock version 0.3 |