hledger/hledger-lib/Hledger/Read
Simon Michael 0b380971f7 journal: require a decimal point in commodity/format/D directives
A commodity directive that doesn't specify the decimal point character
increases ambiguity and the chance of misparsing numbers, especially
as it overrides all style information inferred from the journal amounts.
In some cases it caused amounts with a decimal point to be parsed as if
with a digit group separator so 1.234 became 1234.

We could augment it with extra info from the journal amounts, when available,
but it would still be possible to be ambiguous, and that won't be obvious.

A commodity directive is what we recommend to nail down the style.
It seems the simple and really only way to do this reliably is to require
an explicit decimal point character. Most folks probably do this already.

Unfortunately, it makes another potential incompatiblity with ledger and
beancount journals. But the error message will be clear and easy to
work around.
2018-04-20 21:56:06 -07:00
..
Common.hs refactor: number parsing docs 2018-04-20 21:39:06 -07:00
CsvReader.hs csv: handle the other double negation cases: -(N), ((N)) (fix #736) 2018-04-18 07:39:33 -07:00
JournalReader.hs journal: require a decimal point in commodity/format/D directives 2018-04-20 21:56:06 -07:00
LedgerReader.hs.disabled lib: disable WIP ledger4 parser, lighten dependencies 2017-03-29 21:06:26 -07:00
TimeclockReader.hs lib: auto postings generated before amount inference and balance checks (#729) 2018-04-17 14:33:32 -07:00
TimedotReader.hs lib: auto postings generated before amount inference and balance checks (#729) 2018-04-17 14:33:32 -07:00