zero: Semigroups with absorption
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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.
Properties
| Versions | 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.3.1, 0.1.4, 0.1.5, 0.1.5 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.8 && <5.0), semigroups (>=0.16 && <0.20) [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 2019-05-16T21:01:22Z |
Modules
[Index] [Quick Jump]
- Data
Downloads
- zero-0.1.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees