A series of type families and constraints for "indexable" types.

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

MIT licensed by Clinton Mead
Maintained by

This package deals with types that can roughly be "indexed" at compile time by an integer. For example, tuples and be indexed by their nth elements, and functions by their nth argument. A number of type functions allow one to extract these subtypes, i.e. the type of the 2nd element of a given tuple. Furthermore, constraints are defined which allow one to easily constrain types to these index types, e.g. a constraint that says "t is a 3 tuple". Control.IndexT has more detail.

Depends on:
Used by 3 packages:
comments powered byDisqus