Copyright | (c) 2014 Elliot Robinson (c) 2014 Argiope Technical Solutions |
---|---|
License | BSD3 |
Maintainer | Elliot Robinson <elliot.robinson@argiopetech.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- showOrdinal :: Integral a => a -> Text
- ordinalSuffix :: Integral a => a -> Text
Documentation
showOrdinal :: Integral a => a -> Text Source
ordinalSuffix :: Integral a => a -> Text Source
Returns the appropriate ordinal suffix for the provided Integral
>>>
map ordinalSuffix [101, 102, 103, 113]
["st", "nd", "rd", "th"]