toolshed-0.15.0.0: Utilities used by other packages.

Safe HaskellSafe-Inferred

ToolShed.Test.ReversibleBoundedEnum

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Facilities testing of custom implementations of Enum.

Synopsis

Functions

Predicates

isReversible :: (Bounded r, Eq r, Enum r) => r -> BoolSource

Checks that composing pred & succ is equivalent to the identity.