Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Parsing and pretty printing of Roman numerals

tag: 0.5.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.