| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Fluent.Number
Synopsis
- data Style
- data CurrencyDisplay
- data NumberOptions = NumberOptions {}
- numberOptions :: NumberOptions
- fractionDigits :: NumberOptions -> (Int, Int)
- significantDigits :: NumberOptions -> Maybe (Int, Int)
- unitIdentifier :: Text -> Text
- skeleton :: NumberOptions -> Text
- fromLiteral :: NumberLiteral -> (Scientific, NumberOptions)
- toLiteral :: Scientific -> NumberOptions -> NumberLiteral
Documentation
What a number denotes, which determines how it is formatted.
data CurrencyDisplay Source #
How a Currency is displayed.
Instances
data NumberOptions Source #
Constructors
| NumberOptions | |
Fields | |
Instances
| Show NumberOptions Source # | |
Defined in Language.Fluent.Number Methods showsPrec :: Int -> NumberOptions -> ShowS # show :: NumberOptions -> String # showList :: [NumberOptions] -> ShowS # | |
| Eq NumberOptions Source # | |
Defined in Language.Fluent.Number Methods (==) :: NumberOptions -> NumberOptions -> Bool # (/=) :: NumberOptions -> NumberOptions -> Bool # | |
fractionDigits :: NumberOptions -> (Int, Int) Source #
significantDigits :: NumberOptions -> Maybe (Int, Int) Source #
unitIdentifier :: Text -> Text Source #
skeleton :: NumberOptions -> Text Source #
fromLiteral :: NumberLiteral -> (Scientific, NumberOptions) Source #
toLiteral :: Scientific -> NumberOptions -> NumberLiteral Source #