invertible-0.1.2: bidirectional arrows, bijective functions, and invariant functors

Safe HaskellSafe
LanguageHaskell2010

Data.Invertible.Enum

Description

Bidirectional versions of Enum functions.

Synopsis

Documentation

enum :: Enum a => Int <-> a Source #

Convert between an Int and an Enum with toEnum and fromEnum.

succ :: Enum a => a <-> a Source #

Combine succ and pred