derive-0.1.2: A program and library to derive instances for data typesSource codeContentsIndex
Data.Derive.EnumCyclic
Description
EnumCyclic defines the Enum class, using the same modifications as our Enum derivation, but additionally succ and pred treat the data type as cyclic, wrapping between the first and last constructors.
Documentation
makeEnumCyclic :: DerivationSource
Produced by Haddock version 2.4.2