type-level-natural-number: Simple, Haskell 2010-compatible type level natural numbers

[ bsd3, data, library, type-system ] [ Propose Tags ] [ Report a vulnerability ]

This is a simple, Haskell 2010 compatible implementation of type-level natural numbers. Operations requiring non-Haskell 2010 language extensions have been split into a separate package. The difference between this package and the many others on Hackage implementing type-level naturals is its emphasis on simplicity. It only supports non-negative natural numbers, and only the successor and predicessor operations. It represents natural numbers using a type-level linked list, so it is not intended to be used for representing large numbers. Pre-defined aliases for natural numbers up to 15 are provided. The code for this package was largely inspired by the type-level natural numbers in the excellent Vec package.

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0, 1.1, 1.1.1, 2.0
Dependencies base (>=3 && <5) [details]
License BSD-3-Clause
Author Gregory Crosswhite
Maintainer Gregory Crosswhite <gcross@phys.washington.edu>
Category Type System, Data
Uploaded by GregoryCrosswhite at 2010-07-30T20:03:46Z
Distributions LTSHaskell:2.0, NixOS:2.0, Stackage:2.0
Reverse Dependencies 8 direct, 7 indirect [details]
Downloads 3754 total (24 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]