mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
0b380971f7
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. |
||
---|---|---|
.. | ||
Hledger | ||
other/ledger-parse | ||
tests | ||
Text/Megaparsec | ||
.ghci | ||
CHANGES | ||
hledger_csv.5 | ||
hledger_csv.info | ||
hledger_csv.m4.md | ||
hledger_csv.txt | ||
hledger_journal.5 | ||
hledger_journal.info | ||
hledger_journal.m4.md | ||
hledger_journal.txt | ||
hledger_timeclock.5 | ||
hledger_timeclock.info | ||
hledger_timeclock.m4.md | ||
hledger_timeclock.txt | ||
hledger_timedot.5 | ||
hledger_timedot.info | ||
hledger_timedot.m4.md | ||
hledger_timedot.txt | ||
hledger-lib.cabal | ||
Hledger.hs | ||
LICENSE | ||
package.yaml | ||
README | ||
Setup.hs |
A reusable library containing hledger's core functionality. This is used by most hledger* packages for common data parsing, command line option handling, reporting etc.