Module documentation for 1.1
This package provides unary type level representations of the
(positive and negative) integers and basic operations (addition,
subtraction, multiplication, division) on these.
Due to the unary implementation the practical size of the
NumTypes is severely limited making them unsuitable for
large-cardinality applications. If you will be working with
integers beyond (-20, 20) this package probably isn't for you.
It is, however, eminently suitable for applications such as
representing physical dimensions (see the
Requires GHC 6.6.1 or later.
GHC 7.8.1 compatibility fix.
- Added a
Sub c b aconstraint to
Sum a b c. This prevents a liberal coverage condition failure on GHC 7.8.1 RC1.
I don’t expect this to break any existing code but am updating the major version number just in case.
- Typeable NumTypes.
See the [announcement].