generated at
Ord型クラス
全順序を付けられる型
Eq型クラスを継承する

methods
(>) , (<) , (>=) , (<=)


hs
class Eq a => Ord a where compare :: a -> a -> Ordering (<), (<=), (>), (>=) :: a -> a -> Bool max, min :: a -> a -> a


fp-ts ref
ts
import { Eq } from 'fp-ts/lib/Eq' type Ordering = -1 | 0 | 1 interface Ord<A> extends Eq<A> { readonly compare: (first: A, second: A) => Ordering }
Ordering
first > second なら -1
first == second なら 0
first < second なら 1