|
Data.Ring | Portability | portable (instances use MPTCs) | Stability | experimental | Maintainer | ekmett@gmail.com |
|
|
|
Description |
Defines left- and right- seminearrings. Every MonadPlus wrapped around
a Monoid qualifies due to the distributivity of (>>=) over mplus.
See http://conway.rutgers.edu/~ccshan/wiki/blog/posts/WordNumbers1/
|
|
Synopsis |
|
|
|
Documentation |
|
module Data.Group |
|
|
0 annihilates times
| | Instances | Ringoid Int | Ringoid Integer | Ringoid Natural | Monoid m => Ringoid ([] m) | Monoid m => Ringoid (Maybe m) | Ringoid m => Ringoid (Dual m) | Ringoid m => Ringoid (Self m) | Ringoid m => Ringoid (FromString m) | Num a => Ringoid (FromNum a) | Bits a => Ringoid (Boolean a) | (Bounded a, Enum a) => Ringoid (BitSet a) | Ord a => Ringoid (Priority a) | (Bounded a, Ord a) => Ringoid (Order a) | (Ord a, Num a) => Ringoid (Tropical a) | (Measured v m, Monoid m) => Ringoid (FingerTree v m) | Ringoid m => Ringoid (ReducedBy m s) | (Alternative f, Monoid a) => Ringoid (Alt f a) | (MonadPlus m, Monoid a) => Ringoid (MonadSum m a) | (Modular s a, Integral a) => Ringoid (Mod a s) | (MonadPlus m, Monoid w, Monoid n) => Ringoid (WriterT w m n) | (MonadPlus m, Monoid w, Monoid n) => Ringoid (WriterT w m n) | (MonadPlus m, Monoid n) => Ringoid (StateT s m n) | (MonadPlus m, Monoid n) => Ringoid (StateT s m n) | (MonadPlus m, Monoid n) => Ringoid (ReaderT e m n) | (Ringoid r, Bimodule r m) => Ringoid (D s r m) | (Stream s m t, Monoid a) => Ringoid (ParsecT s u m a) | (MonadPlus m, Monoid w, Monoid n) => Ringoid (RWST r w s m n) | (MonadPlus m, Monoid w, Monoid n) => Ringoid (RWST r w s m n) |
|
|
|
|
a * (b + c) = (a * b) + (a * c) | | Instances | |
|
|
|
(a + b) * c = (a * c) + (b * c) | | Instances | RightSemiNearRing Natural | Monoid m => RightSemiNearRing ([] m) | Monoid m => RightSemiNearRing (Maybe m) | LeftSemiNearRing m => RightSemiNearRing (Dual m) | RightSemiNearRing m => RightSemiNearRing (Self m) | RightSemiNearRing m => RightSemiNearRing (FromString m) | Num a => RightSemiNearRing (FromNum a) | Bits a => RightSemiNearRing (Boolean a) | (Bounded a, Enum a) => RightSemiNearRing (BitSet a) | Ord a => RightSemiNearRing (Priority a) | (Bounded a, Ord a) => RightSemiNearRing (Order a) | (Ord a, Num a) => RightSemiNearRing (Tropical a) | (Measured v m, Monoid m) => RightSemiNearRing (FingerTree v m) | RightSemiNearRing m => RightSemiNearRing (ReducedBy m s) | (Alternative f, Monoid a) => RightSemiNearRing (Alt f a) | (MonadPlus m, Monoid a) => RightSemiNearRing (MonadSum m a) | (Modular s a, Integral a) => RightSemiNearRing (Mod a s) | (MonadPlus m, Monoid w, Monoid n) => RightSemiNearRing (WriterT w m n) | (MonadPlus m, Monoid w, Monoid n) => RightSemiNearRing (WriterT w m n) | (MonadPlus m, Monoid n) => RightSemiNearRing (StateT s m n) | (MonadPlus m, Monoid n) => RightSemiNearRing (StateT s m n) | (MonadPlus m, Monoid n) => RightSemiNearRing (ReaderT e m n) | (RightSemiNearRing r, Bimodule r m) => RightSemiNearRing (D s r m) | (Stream s m t, Monoid a) => RightSemiNearRing (ParsecT s u m a) | (MonadPlus m, Monoid w, Monoid n) => RightSemiNearRing (RWST r w s m n) | (MonadPlus m, Monoid w, Monoid n) => RightSemiNearRing (RWST r w s m n) |
|
|
|
|
|
|
|
| Instances | |
|
|
|
| Instances | |
|
|
|
| Instances | |
|
|
Produced by Haddock version 2.4.2 |