| Copyright | (c) Alexander Hakki |
|---|---|
| License | BSD3 |
| Maintainer | ahk@ahakki.xyz |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Roman
Description
Documentation
The Class Roman implements a single Method, fromRoman, to convert to an Integral Type"
Minimal complete definition
data RomanSymbol Source #
RomanSymbols from I to M
Zero is represented as the latin word Nulla
Instances
| Enum RomanSymbol Source # | |
| Eq RomanSymbol Source # | |
| Num RomanList Source # | Unlike single Roman Symbols, lists of them can implement Num in all cases. However, Roman Numerals can never be negative. |
| Num RomanSymbol Source # | Roman Symbols implement Num. This has some issues, as the result of operations such as I + I can not be represented as a single Roman Numeral. Use RomanList instead. |
| Ord RomanSymbol Source # | |
| Read RomanSymbol Source # | Read is case insensitive |
| Show RomanSymbol Source # | |
| Roman RomanList Source # | fromRoman on a RomanList also returns the expected result, if the Roman Number is not stricly "correct", such as XIIX -> 18. |
| Roman RomanSymbol Source # | |
type RomanList = [RomanSymbol] Source #