numtype

Type-level (low cardinality) integers.

http://dimensional.googlecode.com/

Version on this page:1.1@rev: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:31ca82abfe00065c12d6bc68a4f568ee9b2fa087f70a89e1ce2d1b0ea8ce25f2,1276

Module documentation for 1.1

  • Numeric
    • Numeric.NumType
Depends on 1 package(full list with versions):
Used by 1 package in lts-0.7(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)