monus: a 'Monus' is a commutative monoid that allows a notion of substraction.

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

A Monus is a commutative monoid that allows a notion of substraction, with the following laws:

x <> (y - x) = y <> (x - y)

(x - y) - z = x - (y <> z)

x - x = mempty

mempty - x = mempty


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0
Change log ChangeLog.md
Dependencies base (>=4.9 && <4.13), containers (>=0.5.7.1 && <0.7.0.0) [details]
License BSD-3-Clause
Copyright 2018 Andrew Martin
Author Andrew Martin
Maintainer andrew.thaddeus@gmail.com
Category Data
Home page https://github.com/andrewthad/monus#readme
Bug tracker https://github.com/andrewthad/monus/issues
Source repo head: git clone https://github.com/andrewthad/monus
Uploaded by chessai at 2018-10-19T23:53:21Z
Distributions
Downloads 1118 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-10-19 [all 1 reports]

Readme for monus-0.2.0.0

[back to package description]

monus

A 'Monus' is a commutative monoid that allows a notion of substraction, with the following laws:

  • x <> (y - x) = y <> (x - y)
  • (x - y) - z = x - (y <> z)
  • x - x = mempty
  • mempty - x = mempty

You can read more about them here: https://en.wikipedia.org/wiki/Monus

Installation

Install with cabal-install