ghc-semirings 0.6
Two monoids as one, in holy haskimony
Haskellers are usually familiar with monoids and semigroups. A monoid has an appending operation <>
(or mappend
), and an identity element, mempty
. A semigroup has an appending <>
operation, but does not require a mempty
element. A Semiring has two appending operations, plus
and times
, and two respective identity elements, zero
and one
. More formally, a Semiring R is a set equipped with two binary relations +
and *
, such that: (R,+) is a commutative monoid with identity element 0, (R,*) is a monoid with identity element 1, (*) left and right distributes over addition, and . multiplication by 0
annihilates R.
- Outputs:
out
- Website: https://github.com/chessai/semirings
- Licenses: Modified BSD
- Package source: gnu/packages/haskell-xyz.scm
- Builds: See build status
- Issues: See known issues
Installation
Install ghc-semirings 0.6
as follows:
guix install ghc-semirings@0.6
Or install the latest version:
guix install ghc-semirings
You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell
documentation for more information.