zero: Semigroups with absorption

[ bsd3, data, library ] [ Propose Tags ]

Monoid is a Semigroup glued with a neutral element called mempty. In the same idea, Zero is a Semigroup glued with an absorbing element called zero.

Keep in mind that Zero requires Semigroup. If you have Semigroup defined to work with Monoid, you might end up with no way to implement Zero. That’s why the Semigroup instance for Maybe is confusing, because it relies on Monoid, and cannot be used with Zero. Success is the Zero equivalent of Maybe + Monoid.

Versions 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.3.1, 0.1.4
Change log CHANGELOG.md
Dependencies base (>=4.8 && <5.0), semigroups (>=0.16 && <0.19) [details]
License BSD-3-Clause
Copyright Dimitri Sabadie
Author Dimitri Sabadie <dimitri.sabadie@gmail.com>
Maintainer Dimitri Sabadie <dimitri.sabadie@gmail.com>
Category Data
Home page https://github.com/phaazon/zero
Bug tracker https://github.com/phaazon/zero/issues
Source repo head: git clone https://github.com/phaazon/zero.git
Uploaded by DimitriSabadie at Wed May 25 11:27:26 UTC 2016
Distributions LTSHaskell:0.1.4, NixOS:0.1.4, Stackage:0.1.4
Downloads 1548 total (22 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-05-25 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees