Ordering
Instances
Model
Pattern matching
Utilities
eqOrdering(deprecated)invert(deprecated)monoidOrdering(deprecated)- reverse
semigroupOrdering(deprecated)- sign
Instances
Eq
Signature
export declare const Eq: E.Eq<Ordering>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Monoid
Signature
export declare const Monoid: M.Monoid<Ordering>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Semigroup
Signature
export declare const Semigroup: S.Semigroup<Ordering>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Model
Ordering
Signature
export type Ordering = -1 | 0 | 1
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Pattern matching
match
Signature
export declare const match: <A>(onLessThan: () => A, onEqual: () => A, onGreaterThan: () => A) => (o: Ordering) => A