| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Dioid
Documentation
class (Prd a, Semiring a) => Dioid a Source #
Right pre-dioids and dioids.
A right-dioid is a semiring with a right-canonical pre-order relation relative to <>:
a <~ b iff b ≡ a <> c for some c.
In other words we have that:
a<~(a<>b) ≡True
Consequently <~ is both reflexive and transitive:
a<~a ≡Truea<~b && b<~c ==> a<~c ≡True
Finally <~ is an order relation:
(a=~b) == (a==b)
See Property
Instances
| Dioid Bool Source # | |
Defined in Data.Bool.Instance | |
| Dioid Natural Source # | |
Defined in Data.Word.Instance | |
| Dioid Word Source # | |
Defined in Data.Word.Instance | |
| Dioid Word8 Source # | |
Defined in Data.Word.Instance | |
| Dioid Word16 Source # | |
Defined in Data.Word.Instance | |
| Dioid Word32 Source # | |
Defined in Data.Word.Instance | |
| Dioid Word64 Source # | |
Defined in Data.Word.Instance | |