toolshed-0.15.0.1: Utilities used by other packages.

Safe HaskellSafe-Inferred
LanguageHaskell98

ToolShed.Test.ReversibleEnum

Contents

Description

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

Synopsis

Functions

Predicates

isReversible :: (Eq r, Enum r) => r -> Bool Source

Checks that composing toEnum & fromEnum is equivalent to the identity.