numerals-0.4: Convert numbers to number words

Safe HaskellNone

Text.Numeral.BigNum

Synopsis

Documentation

cardinal :: Integral α => inf -> α -> Maybe TextSource

rule :: (Integral α, Unknown β, Lit β, Add β, Mul β) => Rule α βSource

symMap :: Integral α => Map α (Ctx (Exp i) -> Text)Source

forms :: Text -> Text -> Text -> Text -> Text -> Ctx (Exp i) -> TextSource

type PostfixRepr iSource

Arguments

 = i

Current inflection.

-> Ctx (Exp i)

Context.

-> Text

Postfix representation.

Function that renders the postfix part of a large number name. Or more simply put, this calculates the "illion" part of "million", "billion", etc.

scaleReprSource

Arguments

:: PostfixRepr i 
-> [(, Ctx (Exp i) -> Text)]

Additional symbol map entries.

-> ScaleRepr i 

pelletierReprSource

Arguments

:: PostfixRepr i

Postfix for offset 0 names.

-> PostfixRepr i

Postfix for offset 3 names.

-> [(, Ctx (Exp i) -> Text)]

Additional symbol map entries.

-> ScaleRepr i