Type-level integers, booleans, lists using type families

Version on this page:
LTS Haskell 12.22:
Stackage Nightly 2018-12-13:
Latest on Hackage:

See all snapshots tfp appears in

BSD3 licensed by Peter Gavin, Henning Thielemann
Maintained by

Module documentation for

There are no documented modules for this package.

TFP is an abbreviation for Type Family Programming. It provides implementations of type-level integers and booleans, and (eventually) simple type-level data structures. It uses type families as functions to produce new types, which provides an intuitive way to parameterize data types and functions on numerical values at compile time.



* Change representation of decimals to an inherently normalized form
that is symmetric with respect to positive and negative numbers.

* singularize module names

* separate Decimal and general representation

* use Proxys instead of plain types for data functions
This is also consistent with new Nat kind,
where types of kind Nat have no data values.

* Ord: make infix operators classes and prefix functions type functions
It seems to be more natural to me to write
x :<: y and GTT x y ~ True

* Num, Bool, Ord: remove T suffixes from functions
Use qualification instead.
comments powered byDisqus