type-level-numbers: Type level numbers implemented using type families.

[ bsd3, library, type-system ] [ Propose Tags ]

This is type level numbers implemented using type families. Natural numbers use binary encoding. With default context stack numbers up to 2^18-1 coudl be represented. Signed integer numbers use balanced ternary encoding.

Package is structured as folows:

So far comparison of numbers, subtraction and multiplication of numbers are supported.

Versions [faq] 0.1,,,,,,
Dependencies base (>=3 && <5), template-haskell (>2.0) [details]
License BSD-3-Clause
Author Alexey Khudyakov <alexey.skladnoy@gmail.com>
Maintainer Alexey Khudyakov <alexey.skladnoy@gmail.com>
Category Type System
Source repo head: hg clone http://bitbucket.org/Shimuuar/type-numbers
Uploaded by AlexeyKhudyakov at 2010-07-31T13:08:23Z
Distributions Debian:, LTSHaskell:, NixOS:, Stackage:
Downloads 6497 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-29 [all 7 reports]


  • TypeLevel
    • TypeLevel.Boolean
    • Number
      • TypeLevel.Number.Classes
      • TypeLevel.Number.Int
      • TypeLevel.Number.Nat
        • TypeLevel.Number.Nat.Num
    • TypeLevel.Reify


Maintainer's Corner

For package maintainers and hackage trustees