enumerate-0.1.1: enumerate all the values in a finite type (automatically)

Safe HaskellNone
LanguageHaskell2010

Data.Enumerate

Description

see Data.Enumerable.Types for detailed documentation.

to import every symbol in this package, run this in GHCi:

:m +  Data.Enumerate  Data.Enumerate.Extra  Data.Enumerate.Large  Data.Enumerate.Function

the modules Data.Enumerate.Large and Data.Enumerate.Function have orphan instances for large types, and aren't reexported by default. this makes attempting to enumerate them a type error, rather than runtime non-termination.

See the source of Data.Enumerate.Example for an example.

Documentation