Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Class Enum
defines operations on sequentially ordered types.
the successor of a value. For numeric types, succ
adds 1.
the predecessor of a value. For numeric types, pred
subtracts 1.
toEnum :: Integer -> a Source #
Convert from an Integer
.
fromEnum :: a -> Integer Source #
Convert to an Integer
.
enumFromTo :: a -> a -> [a] Source #
Construct a list from the given range.