hledger/hledger-lib
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
..
Hledger journal: require a decimal point in commodity/format/D directives 2018-04-20 21:56:06 -07:00
other/ledger-parse lib: restrict imports, avoiding GHCI clashes 2016-11-20 10:27:16 -08:00
tests lib: move easytest tests to lib, depend on released version 2018-03-05 17:27:13 -08:00
Text/Megaparsec lib: refactor 2017-07-31 07:09:06 -07:00
.ghci tools: .ghci for each package, sets shorter prompt 2016-04-15 16:06:45 -07:00
CHANGES bump version to 1.9, bump manual date 2018-03-31 19:15:24 +01:00
hledger_csv.5 doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_csv.info doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_csv.m4.md remove numbers from all but nroff filenames 2017-12-06 18:35:18 -08:00
hledger_csv.txt doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_journal.5 doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_journal.info doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_journal.m4.md journal: require a decimal point in commodity/format/D directives 2018-04-20 21:56:06 -07:00
hledger_journal.txt doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_timeclock.5 doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_timeclock.info doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_timeclock.m4.md remove numbers from all but nroff filenames 2017-12-06 18:35:18 -08:00
hledger_timeclock.txt doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_timedot.5 doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_timedot.info doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger_timedot.m4.md remove numbers from all but nroff filenames 2017-12-06 18:35:18 -08:00
hledger_timedot.txt doc: regen embedded manuals 2018-04-20 06:48:26 -07:00
hledger-lib.cabal regen cabal files with stack 1.7's hpack (0.28.2) 2018-04-20 06:47:52 -07:00
Hledger.hs Use quoteIfNeeded in quoteIfSpaced. Fix escapeDoubleQuotes to escape 2018-04-12 12:04:20 -07:00
LICENSE split off hledger-lib package, containing core types & utils 2010-03-22 01:44:59 +00:00
package.yaml cabal: update tested-with 2018-04-20 05:24:09 -07:00
README doc: ensure all five main packages have a README 2016-04-12 11:13:01 -07:00
Setup.hs Revert "remove Setup.hs files again, fixing a yesod devel warning" 2014-05-24 13:39:09 -07:00

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.