@hackage semigroups0.13
Anything that associates
Categories
License
BSD-3-Clause
Maintainer
Edward A. Kmett <ekmett@gmail.com>
Links
Versions
Installation
Dependencies (7)
- base >=2 && <3
- bytestring >=0.9 && <1
- containers >=0.3 && <0.6
- hashable >=1.1 && <1.3
- nats >=0.1 && <1
- text >=0.10 && <2 Show all…
Dependents (1011)
@hackage/OpenSCAD, @hackage/Cabal, @hackage/qrcode-core, @hackage/theatre, @hackage/unity-testresult-parser, @hackage/comfort-graph, Show all…
Package Flags
base2(off by default)
semigroups
Haskellers are usually familiar with monoids. A monoid has an appending operation <> or mappend and an identity element mempty. A Semigroup has an append <>, but does not require an mempty element. A Monoid can be made a Semigroup with just instance Semigroup MyMonoid
More formally, a semigroup is an algebraic structure consisting of a set together with an associative binary operation. A semigroup generalizes a monoid in that there might not exist an identity element. It also (originally) generalized a group (a monoid with all inverses) to a type where every element did not have to have an inverse, thus the name semigroup.
Semigroups appear all over the place, except in the Haskell Prelude, so they are packaged here.
Contact Information
Contributions and bug reports are welcome!
Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.
-Edward Kmett
