numtype

Type-level (low cardinality) integers.

http://dimensional.googlecode.com/

Version on this page:1.1
LTS Haskell 3.22:1.1@rev:1
Stackage Nightly 2015-10-30:1.1
Latest on Hackage:1.2

See all snapshots numtype appears in

BSD-3-Clause licensed by Bjorn Buckwalter
Maintained by [email protected]
This version can be pinned in stack with:numtype-1.1@sha256:b3172a6e1e5741be365a21ffb4e02fd47745d1e1df7b59b111a6609f9da2270d,1231

Module documentation for 1.1

Depends on 1 package(full list with versions):
Used by 1 package in nightly-2015-10-23(full list with versions):

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 Dimensional library). Requires GHC 6.6.1 or later.

Changes

1.1 (2014-02)

GHC 7.8.1 compatibility fix.

  • Added a Sub c b a constraint 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.

1.0.1 (2013-07)

  • Typeable NumTypes.

1.0 (2009-06)

See the [announcement][1].

[1]: http://flygdynamikern.blogspot.se/2009/06/announce-numtype-10-type-level-low.html)