|
GHC.Enum | Portability | non-portable (GHC extensions) | Stability | internal | Maintainer | cvs-ghc@haskell.org |
|
|
|
|
|
Description |
The Enum and Bounded classes.
|
|
|
Documentation |
|
class Bounded a where |
| Methods | minBound :: a | | maxBound :: a |
| | Instances | Bounded CChar | Bounded CSChar | Bounded CUChar | Bounded CShort | Bounded CUShort | Bounded CInt | Bounded CUInt | Bounded CLong | Bounded CULong | Bounded CLLong | Bounded CULLong | Bounded CPtrdiff | Bounded CSize | Bounded CWchar | Bounded CSigAtomic | Bounded CClock | Bounded CTime | 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 | Bounded CIno | Bounded CMode | Bounded COff | Bounded CPid | Bounded CSsize | Bounded CGid | Bounded CNlink | Bounded CUid | Bounded CTcflag | Bounded CRLim | Bounded Fd | Bounded Month | Bounded Day |
|
|
|
class Enum a where |
| Methods | succ :: a -> a | | pred :: a -> a | | toEnum :: Int -> a | | fromEnum :: a -> Int | | enumFrom :: a -> [a] | | enumFromThen :: a -> a -> [a] | | enumFromTo :: a -> a -> [a] | | enumFromThenTo :: a -> a -> a -> [a] |
| | Instances | |
|
|
boundedEnumFrom :: (Enum a, Bounded a) => a -> [a] |
|
boundedEnumFromThen :: (Enum a, Bounded a) => a -> a -> [a] |
|
Produced by Haddock version 0.6 |