monus

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

https://github.com/andrewthad/monus#readme

Latest on Hackage:0.2.0.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Andrew Martin
Maintained by [email protected]

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