Package

purescript-strictlypositiveint

Repository
jamieyung/purescript-strictlypositiveint
License
MIT
Uploaded by
jamieyung
Published on
2019-08-22T00:48:43Z

Strictly positive integers (1,2,3,...).

Usage examples

import StrictlyPositiveInt as SPI

a = SPI.fromInt 5
b = a `SPI.plus` (SPI.fromInt 6)
c = b `SPI.minus` SPI.one
d = SPI.toInt c -- 10

Developing

  1. Install purescript: npm install -g purescript
  2. Install bower: npm install -g bower
  3. Install pulp: npm install -g pulp
  4. Install dependencies: npm install && bower install
  5. Run tests: pulp test

License

Licensed under a MIT license

Documentation

Modules
Data.StrictlyPositiveInt
Dependencies