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

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies base (>=4.14.0.0 && <4.22.0.0) [details]
License MIT
Author Daniel Casanueva
Maintainer Daniel Casanueva (coding `at` danielcasanueva.eu)
Revised Revision 1 made by DanielDiaz at 2025-05-22T16:58:30Z
Category Numeric
Home page https://codeberg.org/daniel-casanueva/positive-integer
Uploaded by DanielDiaz at 2025-05-22T16:57:05Z
Distributions
Downloads 3 total (3 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-05-22 [all 1 reports]

Readme for positive-integer-0.1.0.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.