invertible-0.1.2: bidirectional arrows, bijective functions, and invariant functors
Data.Invertible.Enum
Description
Bidirectional versions of Enum functions.
Enum
Synopsis
enum :: Enum a => Int <-> a Source #
Convert between an Int and an Enum with toEnum and fromEnum.
Int
toEnum
fromEnum
succ :: Enum a => a <-> a Source #
Combine succ and pred
succ
pred