Safe Haskell | None |
---|---|
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
.