Hacker News new | past | comments | ask | show | jobs | submit login

Haskell calls it Ord, for ordinal. https://en.m.wikipedia.org/wiki/Ordinal_data_type



Haskell's Ord typeclass is for ordering; it just represents types that have a total order, it doesn't represent ranges.


My bad the ordinal data type class is Enum not Ord!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: