type-level-integers: Provides integers lifted to the type level

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


This packages provides type level integers together with type families for basic arithmetic.

[Skip to ReadMe]


Versions0.0.1, 0.0.1
Change logNone available
Dependenciesbase (>=4.7 && <5) [details]
Copyright(c) 2017 Moritz Schulte
AuthorMoritz Schulte
Home pagehttps://github.com/mtesseract/type-level-integers
Source repositoryhead: git clone https://github.com/mtesseract/type-level-integers
UploadedThu Apr 6 14:58:31 UTC 2017 by mtesseract




Maintainers' corner

For package maintainers and hackage trustees

Readme for type-level-integers-0.0.1

[back to package description]


This Haskell package implements naive type level integers. It exposes the module Data.Type.Integer which exports a new kind LiftedInt populated by the types Z (zero) and LInt Sign PosNat. In other words, a (type level) integer is either zero or a positive natural number together with a sign.

The module exports the type families LIntSucc, LIntPred, LIntInvert, LIntPlus and LIntMinus for manipulating types of kind LiftedInt.