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

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright (c) 2017 Moritz Schulte
Author Moritz Schulte
Maintainer mtesseract@silverratio.net
Category Data
Home page https://github.com/mtesseract/type-level-integers
Source repo head: git clone https://github.com/mtesseract/type-level-integers
Uploaded by mtesseract at 2017-04-06T15:14:28Z
Distributions LTSHaskell:0.0.1, NixOS:0.0.1, Stackage:0.0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1579 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-04-06 [all 1 reports]

Readme for type-level-integers-0.0.1

[back to package description]

type-level-integers

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.