type-level-tf
Type-level programming library (type families)
This library permits performing computations on the type-level. Type-level
functions are implemented using functional dependencies of multi
parameter type classes.
To date, Booleans and Numerals (Naturals and Positives) are
supported. With regard to Numerals, there is support for common
arithmetic operations (addition, substraction, multiplication,
division, exponientation, logarithm, maximum, comparison, GCD)
over natural numbers (using a decimal representation to make
compile-time errors friendlier).
Although making use of type-level computations might seem devious and
obfuscated at first sight, it is indeed useful in practice to implement
lightweight dependent types such us number-parameterized types (e.g. an array
type parameterized by the array's size or a modular group type Zn
parameterized by the modulus).
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.2.1 | 2011-10-29 18:14 UTC | CoreyOConnor | +1478/−0 lines, 11 filesdep +basedep +sybdep +template-haskellsetup-changed |
Dependencies of type-level-tf-0.2.1
base >=4 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
syb >=0 0.7.3 → 0.7.4
| 2026-03-07 17:18 UTC | 0.7.4 | +27/−18 lines, 4 filesPVP ok |
| 2025-08-21 20:31 UTC | 0.7.3 | +176/−154 lines, 13 filesdep ~basePVP: major bump suggested |
| 2023-07-30 17:25 UTC | 0.7.2.4 | +434/−64 lines, 7 filesPVP: major bump suggested |
| 2023-03-18 23:19 UTC | 0.7.2.3 | +50/−36 lines, 4 filesdep ~mtlPVP ok |
| 2022-09-17 15:09 UTC | 0.7.2.2 | +108/−79 lines, 36 filesPVP ok |
showing 5 of 33 versions
template-haskell >2.0 2.23.0.0 → 2.24.0.0
| 2025-12-19 11:53 UTC | 2.24.0.0 | +606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok |
| 2024-12-16 09:29 UTC | 2.23.0.0 | +104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok |
| 2024-05-15 13:07 UTC | 2.22.0.0 | +176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-10-10 00:23 UTC | 2.21.0.0 | +275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-03-28 13:43 UTC | 2.20.0.0 | +215/−139 lines, 9 filesdep −filepathdep ~basedep ~ghc-boot-thPVP ok |
showing 5 of 26 versions
Reverse dependencies
1 packages depend on type-level-tf