| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Dioid.Signed
Synopsis
Documentation
Sign is isomorphic to 'Maybe Ordering' and (Bool,Bool), but has a distinct poset ordering:
and
Indeterminate >= Positive >= Zero Indeterminate >= Negative >= Zero
Note that Positive and Negative are not comparable.
Positivecan be regarded as representing (0, +∞],Negativeas representing [−∞, 0),Indeterminateas representing [−∞, +∞] v NaN, andZeroas representing the set {0}.
Constructors
| Zero | |
| Negative | |
| Positive | |
| Indeterminate |
Instances
| Eq Unsigned Source # | |
| Show Unsigned Source # | |
| Semigroup Unsigned Source # | |
| Monoid Unsigned Source # | |
| Lattice Unsigned Source # | |
| Prd Unsigned Source # | |
| Min Unsigned Source # | |
Defined in Data.Dioid.Signed | |
| Max Unsigned Source # | |
Defined in Data.Dioid.Signed | |
| Quantale Unsigned Source # | |
| Semiring Unsigned Source # | |