Safe Haskell | None |
---|---|
Language | Haskell2010 |
PlutusTx.Enum
Documentation
Class
Enum
defines operations on sequentially ordered types.
Methods
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
.