Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parsing and pretty printing of Roman numerals
Haskell
Tag: 0.5.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Text/Numeral
LICENSE
README.markdown
Setup.hs
roman-numerals.cabal

README.markdown

This library provides functions for parsing and pretty printing Roman numerals. Because the notation of Roman numerals has varied through the centuries this package allows for some customisation using a configuration that is passed to the conversion functions.

Example:

>>> toRoman 1729 ∷ String
"MDCCXXIX"
>>> fromRoman "MDCCXXIX" ∷ Maybe Integer
Just 1729
>>> convertTo simpleRoman 1729 ∷ String
"MDCCXXVIIII"
>>> fromRoman "Bla" ∷ Maybe Integer
Nothing
Something went wrong with that request. Please try again.