The type-level-integers package

[Tags:bsd3, library, test]

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

[Skip to Readme]


Versions 0.0.1
Dependencies base (>=4.7 && <5) [details]
License BSD3
Copyright (c) 2017 Moritz Schulte
Author Moritz Schulte
Category Data
Home page
Source repository head: git clone
Uploaded Thu Apr 6 15:14:28 UTC 2017 by mtesseract
Distributions LTSHaskell:0.0.1, NixOS:0.0.1, Stackage:0.0.1, Tumbleweed:0.0.1
Downloads 74 total (15 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2017-04-06 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for type-level-integers

Readme for type-level-integers-0.0.1


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.