/numerals

numerals formatting for Haskell (with proper CLDR rules)

Primary LanguageHaskellMIT LicenseMIT

Numerals (cardinal) spelling, proper CLDR way.

λ⟩ putStrLn $ spellFi 654321
kuusi­sataa­viisikymmentä­neljä­tuhatta­kolme­sataa­kaksikymmentä­yks

λ⟩ putStrLn $ spellFr (Just Feminine) 77771
soixante-sept mille sept cent' soixante-et-une

Supposed to work: af am ar az bg bs ca cs cy da de ee el en eo es es_003 et fa fa_AF fi fil fo fr fr_BE fr_CH ga he hi hr hu hy id is itja ka kl km ko lo lt lv mk ms mt nb nci nl nn pt pt_PT ro se sk sl sq sr sr_Latn sv ta th tr uk vi zh zh_Hant zh_Hant_HK