The type-level package

[Tags: bsd3, library]

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).


Properties

Versions0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4
Dependenciesbase, ghc, template-haskell (>2.0)
LicenseBSD3
CopyrightCopyright (c) 2008 Alfonso Acosta, Oleg Kiselyov, Wolfgang Jeltsch and KTH's SAM group
AuthorAlfonso Acosta
Maintaineralfonso.acosta@gmail.com
Stabilityalpha
CategoryData
Home pagehttp://code.haskell.org/type-level
Upload dateFri Apr 25 13:50:35 UTC 2008
Uploaded byAlfonsoAcosta
DistributionsDebian:0.2.4, Fedora:0.2.4
Downloads1640 total (108 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees