positive-integer: Type of positive integers.

[ library, mit, numeric ] [ Propose Tags ] [ Report a vulnerability ]

Type of positive integers together with related functions.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0
Dependencies base (>=4.16.0.0 && <4.22.0.0) [details]
License MIT
Author Daniel Casanueva
Maintainer Daniel Casanueva (coding `at` danielcasanueva.eu)
Category Numeric
Home page https://codeberg.org/daniel-casanueva/positive-integer
Uploaded by DanielDiaz at 2025-06-05T18:04:07Z
Distributions
Downloads 9 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-06-05 [all 1 reports]

Readme for positive-integer-0.1.1.0

[back to package description]

positive-integer

Haskell library to work with positive integers (i.e. 1, 2, 3, ...). Some people call these the natural numbers. However, others include 0 as a natural number. The term positive integer is always clear. Besides, Natural is a widely used type in Haskell (and it has 0 in it).

In addition to functions strictly related to positive integers, functions for non-empty lists that take advantage of having positive integers available are also included. See Haddock documentation on Hackage for details.