Module

Data.Enum.Generic

#genericPred

genericPred :: forall a rep. Generic a rep => GenericEnum rep => a -> Maybe a

A Generic implementation of the pred member from the Enum type class.

#genericSucc

genericSucc :: forall a rep. Generic a rep => GenericEnum rep => a -> Maybe a

A Generic implementation of the succ member from the Enum type class.

#genericCardinality

genericCardinality :: forall a rep. Generic a rep => GenericBoundedEnum rep => Cardinality a

A Generic implementation of the cardinality member from the BoundedEnum type class.

#genericToEnum

genericToEnum :: forall a rep. Generic a rep => GenericBoundedEnum rep => Int -> Maybe a

A Generic implementation of the toEnum member from the BoundedEnum type class.

#genericFromEnum

genericFromEnum :: forall a rep. Generic a rep => GenericBoundedEnum rep => a -> Int

A Generic implementation of the fromEnum member from the BoundedEnum type class.

Modules