- data RadGroup
- periodComma :: RadGroup
- periodSpace :: RadGroup
- commaPeriod :: RadGroup
- commaSpace :: RadGroup
- data GroupingSpec
- renderUnquoted :: RadGroup -> (GroupingSpec, GroupingSpec) -> Qty -> Text
- quote :: Text -> Text
- qtyUnquoted :: RadGroup -> Parser Qty
- qtyQuoted :: RadGroup -> Parser Qty
- qty :: RadGroup -> Parser Qty
Setting the radix and separator characters
Specifies how to perform digit grouping when rendering a quantity. All grouping groups into groups of 3 digits.
Do not perform any digit grouping
Group digits, but only if the number to be grouped is greater than 9,999 (if grouping the whole part) or if there are more than 4 decimal places (if grouping the fractional part).
Group digits whenever there are at least four decimal places.
|-> (GroupingSpec, GroupingSpec)|
Group for the portion to the left and right of the radix point?
Renders an unquoted Qty. Performs digit grouping as requested.
Quotes a rendered Qty, but only if necessary; otherwise, simply leaves it unquoted.
Unquoted quantity. These include no spaces, regardless of what the grouping character is.
Parse quoted quantity. It can include spaces, if the grouping
character is a space. However these must be quoted when in a Ledger
file (from the command line they need not be quoted). The quote
character is a caret,