packages feed

type-level-numbers

Type level numbers implemented using type families.

view on Hackage

This is type level numbers implemented using type families. Natural numbers use binary encoding. With default context stack numbers up to 2^18-1 could be represented. Signed integer numbers use balanced ternary encoding. Package is structured as folows: * [@TypeLevel.Number.Classes@] contain generic type families such as Add * [@TypeLevel.Number.Nat@] natural numbers implemented using binary encoding * [@TypeLevel.Number.Int@] signed integers implemented using balanced ternary encoding * [@TypeLevel.Boolean@] type level booleans So far comparison of numbers, subtraction and multiplication of numbers are supported.
versionuploadeduploaderchanges
0.1.1.22022-06-15 10:55 UTCAlexeyKhudyakov+25/−19 lines, 3 filesdep ~base
0.1.1.12013-10-17 12:20 UTCAlexeyKhudyakov1 revisions+146/−20 lines, 7 filesdep +type-level-numbersdep ~basedep ~template-haskell
0.1.1.02013-06-13 14:53 UTCAlexeyKhudyakov1 revisions+114/−16 lines, 5 filesPVP ok
0.1.0.42012-04-23 14:49 UTCAlexeyKhudyakov1 revisions+2/−2 lines, 2 filesPVP: minor bump suggested
0.1.0.32012-04-23 13:09 UTCAlexeyKhudyakov1 revisions+27/−18 lines, 2 filesPVP ok
0.1.0.22011-03-10 17:38 UTCAlexeyKhudyakov1 revisions+6/−3 lines, 1 filesPVP ok
0.1.0.12011-03-09 20:59 UTCAlexeyKhudyakov1 revisions+37/−19 lines, 4 files
0.12010-07-31 13:08 UTCAlexeyKhudyakov1 revisions+996/−0 lines, 13 filesdep +basedep +template-haskellsetup-changed

Dependencies of type-level-numbers-0.1.1.2

base >=3 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

template-haskell >2.0 2.23.0.0 → 2.24.0.0
2025-12-19 11:53 UTC2.24.0.0+606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok
2024-12-16 09:29 UTC2.23.0.0+104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok
2024-05-15 13:07 UTC2.22.0.0+176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-10-10 00:23 UTC2.21.0.0+275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-03-28 13:43 UTC2.20.0.0+215/−139 lines, 9 filesdep −filepathdep ~basedep ~ghc-boot-thPVP ok

showing 5 of 26 versions

Reverse dependencies

2 packages depend on type-level-numbers

acme-everything 2018.11.18 requires type-level-numbers >=0
finite-field 0.10.0 requires type-level-numbers >=0.1.1.0 && <0.2.0.0