Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cpa
· 1y ago · 0 comments
Haskell calls it Ord, for ordinal.
https://en.m.wikipedia.org/wiki/Ordinal_data_type
Comments
[–]
DylanSp
1y ago
Haskell's Ord typeclass is for ordering; it just represents types that have a total order, it doesn't represent ranges.
[–]
cpa
OP
1y ago
My bad the ordinal data type class is Enum not Ord!