| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Semilattice.Signed
Documentation
Sign is similar to 'Maybe Ordering', 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 |
fromOrdering :: Ordering -> Sign Source #