semigroups-actions-0.1: Semigroups actions

Safe HaskellSafe-Inferred

Data.Semigroup.Act.Enum

Synopsis

Documentation

newtype EnumIntAct a Source

A wrapper for an integer acting on an Enum. If the resulting index is out of the enum bounds, an exception is raised.

Constructors

EnumIntAct a 

Instances

newtype EnumBoundedIntAct a Source

A wrapper for an integer acting on an instance of both Enum and Bounded. The index wrap around the bounds, so Sum 1 act (EnumBoundedIntAct maxBound) == (EnumBoundedIntAct minBound) etc.

Constructors

EnumBoundedIntAct a