derive-0.1: A program and library to derive instances for data typesContentsIndex
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 :: Derivation
Produced by Haddock version 0.8