Simon Michael
1b44b2cddf
doc: note hledger man page include files structure
2017-01-10 12:05:26 -08:00
Simon Michael
7dfb424f3f
Revert "print: omit the last posting amount, as we used to #465 , #442 "
...
This reverts commit 29183e7ddd .
2017-01-10 12:05:25 -08:00
Simon Michael
29183e7ddd
print: omit the last posting amount, as we used to #465 , #442
...
This avoids printing invalid journal format for entries where an implicit amount has multiple commodities.
2017-01-10 09:41:27 -08:00
Simon Michael
4abd029bae
print: ensure 0 amounts also appear in the "debit" field
2017-01-10 08:58:11 -08:00
Simon Michael
5fa8780e3f
print: rename second CSV "status" field to posting-status
2017-01-10 08:54:38 -08:00
Simon Michael
34ec7406a1
move add-ons and scripts to bin/
2017-01-08 07:28:23 -08:00
Simon Michael
3ae8712bbc
rename data/ to examples/
2017-01-08 07:26:13 -08:00
Simon Michael
fe457fa12a
doc: update built-in docs
2017-01-05 10:43:06 -08:00
Simon Michael
631a95ba9c
bump version to 1.1.98 (1.2 alpha)
2017-01-05 10:43:06 -08:00
Simon Michael
dd86596d30
doc: rename _versions_ macro
2017-01-04 10:50:16 -08:00
Simon Michael
20bef095aa
doc: changelogs, release notes
2016-12-31 11:24:12 -08:00
Simon Michael
6072f2a8f4
doc: update generated doc files
2016-12-31 11:23:53 -08:00
Simon Michael
14c8e4d8f7
bump version to 1.1
2016-12-31 07:54:47 -08:00
Simon Michael
a1555ce964
Revert "Adding "--value"/"-V" option for balancesheet/incomestatement/cashflow and register ( #361 )"
...
This reverts commit b935cd2243 .
2016-12-31 07:54:47 -08:00
Justin Le
b935cd2243
Adding "--value"/"-V" option for balancesheet/incomestatement/cashflow and register ( #361 )
...
* Added --value options for specialized balance ouputs balancesheet, incomestatement, cashflow
* --value option for 'register' command
lib: postingsValue to convert posting amounts to market value
2016-12-31 07:48:17 -08:00
Simon Michael
78f0c403fb
doc: update generated docs
2016-12-30 14:36:27 -08:00
Simon Michael
701fb5496f
doc, cli: improvements for -B, -V, prices docs #403
2016-12-30 14:36:27 -08:00
Simon Michael
a57c1bde08
bal: with -V, don't ignore market prices in the future #453
2016-12-30 11:46:13 -08:00
Simon Michael
fa431f9544
doc: cli: add a new section on report start/end dates ( #403 )
...
and more linkage among the cli date docs.
2016-12-29 12:39:16 -08:00
Simon Michael
2eb5736abb
doc: the latest input files doc updates
2016-11-22 14:24:50 -08:00
Simon Michael
0dadeffcbc
doc: more input files cleanup
2016-11-21 08:29:50 -08:00
Simon Michael
64a877bff0
doc: input files cleanup
2016-11-21 08:21:14 -08:00
Simon Michael
98ef8f9a60
lib, cli: allow a READER: prefix on data file paths
...
This provides a way to override the file format detection logic,
useful eg for files with wrong extensions or standard input.
2016-11-20 10:32:22 -08:00
Simon Michael
a8ca9e83d9
fix "oldtime" dep typo more ( fixes #431 )
2016-11-19 08:52:27 -08:00
Simon Michael
2eb7db202f
fix "oldtime" dep typo in hledger package ( fixes #431 )
2016-11-19 07:31:16 -08:00
Simon Michael
c8fefef7e8
doc: document file reading, and some options cleanups
2016-11-18 13:26:15 -08:00
Simon Michael
6a36efb7ca
set base lower bound to 4.8 to enforce GHC 7.10+
...
hledger-lib had a valid install plan with GHC 7.8, but requires GHC 7.10 to compile (currently).
Require base 4.8+ everywhere so that stack/cabal will enforce a supported GHC version early.
Also, bump hledger-ui's "stability" to "stable".
2016-11-16 13:14:02 -08:00
Simon Michael
45684f2f79
tighten up dep bounds among the hledger packages
2016-10-27 14:37:14 -07:00
Simon Michael
6d0716b0a5
bump packages (excluding hledger-api and docs) to 1.0.1
2016-10-27 08:14:35 -07:00
Simon Michael
2e10f21f26
doc: update changelogs and relnotes outline (but not relnotes page) for 1.0.1
2016-10-27 08:10:24 -07:00
Simon Michael
d0e9b70e4f
doc: release note/changelog fixes
2016-10-27 07:43:44 -07:00
Simon Michael
8bc0538778
allow megaparsec 5.0 or 5.1 for stackage compatibility
2016-10-27 07:19:26 -07:00
Simon Michael
13a8f21dc5
cli: fix benchmark build failure ( fixes #423 )
2016-10-27 07:00:36 -07:00
Simon Michael
08f97dd9c8
doc: project/package change logs, web release notes
2016-10-26 13:34:28 -07:00
Simon Michael
315db5621a
doc: bump version to 1.0, update manuals & cabal files
2016-10-26 13:34:27 -07:00
Simon Michael
ee2ced7f65
set an upper bound on megaparsec
2016-10-26 13:34:27 -07:00
Brian Scott
8fdea5d11a
Anon feature ( #412 )
...
* Add anon flag to cli
* Implement anonymisation for accounts
* document the --anon option
2016-10-26 10:39:13 -07:00
Simon Michael
5aa4c91332
stack/cabal cleanups; drop GHC 7.6, 7.8 support
...
A (disabled) stack build plan for GHC 7.8 is included; supporting it
would need small code changes and a maintainer.
2016-10-21 14:47:22 -07:00
Simon Michael
843c417079
tools: simplebench is now quickbench
2016-10-21 11:46:50 -07:00
Simon Michael
ca9a247d99
tools: drop stats from defaults bench tests
2016-10-11 14:48:29 -07:00
Simon Michael
f864efdb07
reg: csv: include txn index, rename total field ( fixes #391 )
2016-08-14 10:15:45 -07:00
Simon Michael
332a19ccd8
print: csv: show proper txn index, rename to "txnidx"
2016-08-14 10:15:00 -07:00
Simon Michael
5ea088d1ca
bs,is,cf: add functional tests, fix bs infinite loop #393
2016-08-13 07:47:43 -07:00
Simon Michael
eaba311634
doc: update generated manuals
2016-08-12 17:46:12 -07:00
Simon Michael
69ebc3b159
bal, reg, stats: clarify report modes, output, options
...
- try to clarify naming and meaning of balance/register report modes
and kinds of "balance" displayed. Added balance --change and
register --cumulative flags to clarify report modes.
- with multiple --change/--cumulative/--historical flags use the last
instead of complaining
- register -A is now affected by -H
- options cleanups
2016-08-12 09:44:31 -07:00
Simon Michael
f1ac27590b
doc: update generated manuals
2016-08-09 15:32:32 -07:00
Simon Michael
15ebae5c5f
lib, cli, web: try to fix building with GHC 7.4
2016-08-09 12:22:38 -07:00
Simon Michael
c3b76221d4
pkg: rename terminfo flag, drop pretty-show conditionals
2016-08-09 12:16:24 -07:00
Simon Michael
cf8ebd4ae2
pkg: rename, clean up oldtime flag
2016-08-09 12:03:23 -07:00
Simon Michael
1b65582908
pkg: clean up deps slightly
2016-08-09 12:02:57 -07:00
Simon Michael
4c313be10e
reorder yaml files consistently
2016-08-09 11:39:42 -07:00
Simon Michael
570de3a0a5
format package descriptions more nicely
2016-08-09 11:29:17 -07:00
Simon Michael
a1f88e5dee
tools: remove non-ascii quote from hledger yaml/cabal file
...
might fix the recent appveyor breakage
2016-08-09 09:25:17 -07:00
Simon Michael
0302be1b15
tools: fix tested-with in package.yamls
2016-08-09 07:57:30 -07:00
Simon Michael
d165600155
lib, cli, web, api: use hpack (package.yaml) for all packages at last #371
...
Generated package.yaml files from the old cabal files with hpack-convert,
removed some problematic blank lines manually,
regenerated the cabal files from the package.yaml files with hpack.
Tests pass, looks like all the info is still there.
This means that from now on, we don't edit cabal files directly.
We edit the less verbose package.yaml files. stack will update
the cabal files automatically (or non-stack users can use hpack).
The changes to both are committed, as we still want to provide
the cabal files to downloaders.
2016-08-09 07:24:57 -07:00
Simon Michael
47695f6484
register: tweak --historical help
2016-08-08 17:49:39 -07:00
Simon Michael
39c5eb9801
balance: make -H work with single-column reports #392
...
-H/--historical now makes a single-column balance report with a start
date show historical balances reflecting earlier postings. This is
equivalent to specifying no start date, but it's more consistent.
2016-08-08 17:40:41 -07:00
Simon Michael
974b1e3be0
lib: simplify balance report types; haddocks
2016-08-08 17:23:21 -07:00
Simon Michael
bd5c7669d1
tools: custom hlint config for whole project
2016-08-08 08:30:22 -07:00
Simon Michael
7aa23f6ca2
doc: update generated manuals, and show 0.28dev there
2016-08-08 06:49:50 -07:00
Simon Michael
a9a2b076bc
doc: document inacct: #390
2016-08-08 04:59:34 -07:00
Simon Michael
87b1d26db0
add: suggest one commodity at a time as default amount #383 (take 2)
2016-08-06 20:04:15 -07:00
Simon Michael
009fe6d09f
Revert "add: suggest only one commodity at a time as default amount #383 "
...
Overcommitted.
This reverts commit 92b97e7bd3 .
2016-08-06 19:59:18 -07:00
Simon Michael
92b97e7bd3
add: suggest only one commodity at a time as default amount #383
...
Since we currently can't accept more than one commodity as input.
2016-08-04 11:55:46 -07:00
Simon Michael
2276b1c2d1
doc: update generated manuals
2016-08-04 11:55:46 -07:00
Simon Michael
7603f8328b
doc: options headings pluralisation/capitalisation
2016-08-04 11:55:46 -07:00
Simon Michael
b11f6a43e6
doc: date: cleanups
2016-08-04 11:55:46 -07:00
Simon Michael
2bee53af96
doc: updated generated manuals
2016-08-02 12:55:14 -07:00
Simon Michael
07d0ec4534
doc: expand date:, link it from hledger-ui manual
2016-08-02 12:54:16 -07:00
Simon Michael
985ca50814
doc: expand period expressions, rename "report interval"
2016-08-02 12:51:18 -07:00
Simon Michael
fe6d4cc7da
lib: abstract period/interval/cleared in ReportOpts
2016-07-29 19:20:56 -07:00
Simon Michael
b7071dee84
lib: use Data.Default directly, not via cmdargs
2016-07-29 10:15:48 -07:00
Moritz Kiefer
4141067428
Replace Parsec with Megaparsec (see #289 ) ( #366 )
...
* Replace Parsec with Megaparsec (see #289 )
This builds upon PR #289 by @rasendubi
* Revert renaming of parseWithState to parseWithCtx
* Fix doctests
* Update for Megaparsec 5
* Specialize parser to improve performance
* Pretty print errors
* Swap StateT and ParsecT
This is necessary to get the correct backtracking behavior, i.e. discard
state changes if the parsing fails.
2016-07-29 08:57:10 -07:00
Simon Michael
9b0cadc179
ui: support/require brick 0.7+ #379
2016-07-24 18:06:49 -07:00
Simon Michael
9ccd4e226f
doc: update generated manuals
2016-07-06 15:17:09 -07:00
Simon Michael
1953748972
cli: clarify --debug flag's help
2016-07-06 15:11:10 -07:00
Simon Michael
0b465f61e7
cli: make -I short for --ignore-assertions
...
Differs from Ledger, but will be useful for hledger-ui.
2016-07-06 14:56:29 -07:00
Simon Michael
68a1a8687a
doc: generate really plain text manuals
...
Drop the nice ansi highlighting that won't work everywhere,
the unpredictable unicode hyphens, etc.
2016-06-11 21:34:20 -07:00
Simon Michael
f2cdceb28e
doc: cli: rewrite options description
2016-06-11 21:33:56 -07:00
Simon Michael
4927711490
lib: when reloading a journal, keep aliases and pivot in effect
2016-06-10 16:18:57 -07:00
Simon Michael
e6769b26fc
doc: more macros, less redundancy, cleanups
2016-06-09 18:07:08 -07:00
Simon Michael
8986a8d3a0
doc: fix pivot option formatting, whitespace
2016-06-03 09:50:01 -07:00
Simon Michael
f21e9d1c25
doc: more deduplication of options help
...
Help for reporting options is now also defined once in lib.m4
(in addition to CliOptions.hs). Also fixed some duplication of general
options in docs. hledger-* manuals now include the full list of general
and reporting options; we assume that any inapplicable options get
harmlessly ignored and that this will not surprise users.
2016-06-03 09:38:06 -07:00
Simon Michael
6acd57da53
describe -E/--empty more accurately as "nonzero"
2016-06-03 09:00:43 -07:00
Simon Michael
a961988a88
bump cabal versions to 0.28
2016-05-29 00:00:59 -07:00
Simon Michael
f0baa30db0
doc: another help flag consistency fix
2016-05-28 23:51:14 -07:00
Simon Michael
656734ccd3
doc: define general options once
...
Well, twice: in lib.m4 and in CliOptions.hs. But no longer in every man page.
2016-05-28 23:50:37 -07:00
Simon Michael
df07ad0109
doc: parameterise and bump docs version to 0.28
2016-05-28 23:31:44 -07:00
Simon Michael
54237a61d6
refine help commands/flags' help & docs
2016-05-28 23:29:58 -07:00
Simon Michael
bd3212654c
doc: bring embedded help files up to date
2016-05-28 12:58:30 -07:00
Simon Michael
71b4a16fea
doc: hide pandoc comment in html previewer
2016-05-28 12:12:52 -07:00
Simon Michael
a8f601833e
doc: one less include file
2016-05-28 12:12:27 -07:00
Simon Michael
90c9735b7a
lib: textification: descriptions & codes
...
Slightly higher (with small files) and lower (with large files) maximum
residency, and slightly quicker for all.
hledger -f data/100x100x10.journal stats
<<ghc: 42858472 bytes, 84 GCs, 193712/269608 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.015 elapsed), 0.016 MUT (0.042 elapsed), 0.011 GC (0.119 elapsed) :ghc>>
<<ghc: 42891776 bytes, 84 GCs, 190816/260920 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.004 elapsed), 0.017 MUT (0.025 elapsed), 0.010 GC (0.015 elapsed) :ghc>>
hledger -f data/1000x1000x10.journal stats
<<ghc: 349575240 bytes, 681 GCs, 1396425/4091680 avg/max bytes residency (7 samples), 11M in use, 0.000 INIT (0.000 elapsed), 0.137 MUT (0.146 elapsed), 0.050 GC (0.057 elapsed) :ghc>>
<<ghc: 349927568 bytes, 681 GCs, 1397825/4097248 avg/max bytes residency (7 samples), 11M in use, 0.000 INIT (0.000 elapsed), 0.126 MUT (0.133 elapsed), 0.050 GC (0.057 elapsed) :ghc>>
hledger -f data/10000x1000x10.journal stats
<<ghc: 3424029496 bytes, 6658 GCs, 11403141/41077288 avg/max bytes residency (11 samples), 111M in use, 0.000 INIT (0.000 elapsed), 1.278 MUT (1.310 elapsed), 0.493 GC (0.546 elapsed) :ghc>>
<<ghc: 3427418064 bytes, 6665 GCs, 11127869/37790168 avg/max bytes residency (11 samples), 109M in use, 0.000 INIT (0.001 elapsed), 1.212 MUT (1.229 elapsed), 0.466 GC (0.519 elapsed) :ghc>>
hledger -f data/100000x1000x10.journal stats
<<ghc: 34306546248 bytes, 66727 GCs, 77030638/414617944 avg/max bytes residency (14 samples), 1012M in use, 0.000 INIT (0.000 elapsed), 12.965 MUT (13.164 elapsed), 4.771 GC (5.447 elapsed) :ghc>>
<<ghc: 34340246056 bytes, 66779 GCs, 76983178/416011480 avg/max bytes residency (14 samples), 1011M in use, 0.000 INIT (0.008 elapsed), 12.666 MUT (12.836 elapsed), 4.595 GC (5.175 elapsed) :ghc>>
2016-05-24 19:00:58 -07:00
Simon Michael
770dcee742
lib: textification: comments and tags
...
No change.
hledger -f data/100x100x10.journal stats
<<ghc: 42859576 bytes, 84 GCs, 193781/269984 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.001 elapsed), 0.016 MUT (0.020 elapsed), 0.009 GC (0.011 elapsed) :ghc>>
<<ghc: 42859576 bytes, 84 GCs, 193781/269984 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.001 elapsed), 0.015 MUT (0.018 elapsed), 0.009 GC (0.013 elapsed) :ghc>>
hledger -f data/1000x1000x10.journal stats
<<ghc: 349576344 bytes, 681 GCs, 1407388/4091680 avg/max bytes residency (7 samples), 11M in use, 0.000 INIT (0.000 elapsed), 0.124 MUT (0.130 elapsed), 0.047 GC (0.055 elapsed) :ghc>>
<<ghc: 349576280 bytes, 681 GCs, 1407388/4091680 avg/max bytes residency (7 samples), 11M in use, 0.000 INIT (0.000 elapsed), 0.126 MUT (0.132 elapsed), 0.049 GC (0.058 elapsed) :ghc>>
hledger -f data/10000x1000x10.journal stats
<<ghc: 3424030664 bytes, 6658 GCs, 11403359/41071624 avg/max bytes residency (11 samples), 111M in use, 0.000 INIT (0.000 elapsed), 1.207 MUT (1.228 elapsed), 0.473 GC (0.528 elapsed) :ghc>>
<<ghc: 3424030760 bytes, 6658 GCs, 11403874/41077288 avg/max bytes residency (11 samples), 111M in use, 0.000 INIT (0.002 elapsed), 1.234 MUT (1.256 elapsed), 0.470 GC (0.520 elapsed) :ghc>>
hledger -f data/100000x1000x10.journal stats
<<ghc: 34306547448 bytes, 66727 GCs, 76805504/414629288 avg/max bytes residency (14 samples), 1009M in use, 0.000 INIT (0.003 elapsed), 12.615 MUT (12.813 elapsed), 4.656 GC (5.291 elapsed) :ghc>>
<<ghc: 34306547320 bytes, 66727 GCs, 76805504/414629288 avg/max bytes residency (14 samples), 1009M in use, 0.000 INIT (0.009 elapsed), 12.802 MUT (13.065 elapsed), 4.774 GC (5.441 elapsed) :ghc>>
2016-05-24 19:00:57 -07:00
Simon Michael
c89c33b36e
lib: textification: parse stream
...
10% more allocation, but 35% lower maximum residency, and slightly quicker.
hledger -f data/100x100x10.journal stats
<<ghc: 39327768 bytes, 77 GCs, 196834/269496 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.010 elapsed), 0.020 MUT (0.092 elapsed), 0.014 GC (0.119 elapsed) :ghc>>
<<ghc: 42842136 bytes, 84 GCs, 194010/270912 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.009 elapsed), 0.016 MUT (0.029 elapsed), 0.012 GC (0.120 elapsed) :ghc>>
hledger -f data/1000x1000x10.journal stats
<<ghc: 314291440 bytes, 612 GCs, 2070776/6628048 avg/max bytes residency (7 samples), 16M in use, 0.000 INIT (0.000 elapsed), 0.128 MUT (0.144 elapsed), 0.059 GC (0.070 elapsed) :ghc>>
<<ghc: 349558872 bytes, 681 GCs, 1397597/4106384 avg/max bytes residency (7 samples), 11M in use, 0.000 INIT (0.004 elapsed), 0.124 MUT (0.133 elapsed), 0.047 GC (0.053 elapsed) :ghc>>
hledger -f data/10000x1000x10.journal stats
<<ghc: 3070026824 bytes, 5973 GCs, 12698030/62951784 avg/max bytes residency (10 samples), 124M in use, 0.000 INIT (0.002 elapsed), 1.268 MUT (1.354 elapsed), 0.514 GC (0.587 elapsed) :ghc>>
<<ghc: 3424013128 bytes, 6658 GCs, 11405501/41071624 avg/max bytes residency (11 samples), 111M in use, 0.000 INIT (0.001 elapsed), 1.343 MUT (1.406 elapsed), 0.511 GC (0.573 elapsed) :ghc>>
hledger -f data/100000x1000x10.journal stats
<<ghc: 30753387392 bytes, 59811 GCs, 117615462/666703600 avg/max bytes residency (14 samples), 1588M in use, 0.000 INIT (0.000 elapsed), 12.068 MUT (12.238 elapsed), 6.015 GC (7.190 elapsed) :ghc>>
<<ghc: 34306530696 bytes, 66727 GCs, 76806196/414629312 avg/max bytes residency (14 samples), 1009M in use, 0.000 INIT (0.010 elapsed), 14.357 MUT (16.370 elapsed), 5.298 GC (6.534 elapsed) :ghc>>
2016-05-24 19:00:57 -07:00
Simon Michael
102b76c17f
lib: textification: commodity symbols
...
hledger -f data/100x100x10.journal stats
<<ghc: 39288536 bytes, 77 GCs, 196608/269560 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.001 elapsed), 0.016 MUT (0.028 elapsed), 0.009 GC (0.012 elapsed) :ghc>>
<<ghc: 39290808 bytes, 77 GCs, 196608/269560 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.003 elapsed), 0.015 MUT (0.021 elapsed), 0.009 GC (0.011 elapsed) :ghc>>
hledger -f data/1000x100x10.journal stats
<<ghc: 314268960 bytes, 612 GCs, 2143219/6826152 avg/max bytes residency (7 samples), 16M in use, 0.000 INIT (0.009 elapsed), 0.135 MUT (0.151 elapsed), 0.065 GC (0.178 elapsed) :ghc>>
<<ghc: 314254512 bytes, 612 GCs, 2072377/6628024 avg/max bytes residency (7 samples), 16M in use, 0.000 INIT (0.000 elapsed), 0.130 MUT (0.134 elapsed), 0.064 GC (0.075 elapsed) :ghc>>
hledger -f data/10000x100x10.journal stats
<<ghc: 3070016592 bytes, 5965 GCs, 13138220/64266016 avg/max bytes residency (10 samples), 128M in use, 0.000 INIT (0.000 elapsed), 1.272 MUT (1.322 elapsed), 0.527 GC (0.595 elapsed) :ghc>>
<<ghc: 3069989896 bytes, 5973 GCs, 12687877/62848920 avg/max bytes residency (10 samples), 124M in use, 0.000 INIT (0.002 elapsed), 1.295 MUT (1.324 elapsed), 0.511 GC (0.570 elapsed) :ghc>>
hledger -f data/100000x100x10.journal stats
<<ghc: 30753448072 bytes, 59763 GCs, 121502982/673169248 avg/max bytes residency (14 samples), 1640M in use, 0.000 INIT (0.007 elapsed), 12.421 MUT (12.672 elapsed), 6.240 GC (7.812 elapsed) :ghc>>
<<ghc: 30753350528 bytes, 59811 GCs, 117616668/666703600 avg/max bytes residency (14 samples), 1588M in use, 0.001 INIT (0.011 elapsed), 13.209 MUT (13.683 elapsed), 6.137 GC (7.117 elapsed) :ghc>>
2016-05-24 19:00:57 -07:00
Simon Michael
2538d14ea7
lib: textification begins! account names
...
The first of several conversions from String to (strict) Text, hopefully
reducing space and time usage.
This one shows a small improvement, with GHC 7.10.3 and text-1.2.2.1:
hledger -f data/100x100x10.journal stats
string: <<ghc: 39471064 bytes, 77 GCs, 198421/275048 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.001 elapsed), 0.015 MUT (0.020 elapsed), 0.010 GC (0.014 elapsed) :ghc>>
text: <<ghc: 39268024 bytes, 77 GCs, 197018/270840 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.002 elapsed), 0.016 MUT (0.022 elapsed), 0.009 GC (0.011 elapsed) :ghc>>
hledger -f data/1000x100x10.journal stats
string: <<ghc: 318555920 bytes, 617 GCs, 2178997/7134472 avg/max bytes residency (7 samples), 16M in use, 0.000 INIT (0.001 elapsed), 0.129 MUT (0.136 elapsed), 0.067 GC (0.077 elapsed) :ghc>>
text: <<ghc: 314248496 bytes, 612 GCs, 2074045/6617960 avg/max bytes residency (7 samples), 16M in use, 0.000 INIT (0.003 elapsed), 0.137 MUT (0.145 elapsed), 0.067 GC (0.079 elapsed) :ghc>>
hledger -f data/10000x100x10.journal stats
string: <<ghc: 3114763608 bytes, 6026 GCs, 18858950/75552024 avg/max bytes residency (11 samples), 201M in use, 0.000 INIT (0.000 elapsed), 1.331 MUT (1.372 elapsed), 0.699 GC (0.812 elapsed) :ghc>>
text: <<ghc: 3071468920 bytes, 5968 GCs, 14120344/62951360 avg/max bytes residency (9 samples), 124M in use, 0.000 INIT (0.003 elapsed), 1.272 MUT (1.349 elapsed), 0.513 GC (0.578 elapsed) :ghc>>
hledger -f data/100000x100x10.journal stats
string: <<ghc: 31186579432 bytes, 60278 GCs, 135332581/740228992 avg/max bytes residency (13 samples), 1697M in use, 0.000 INIT (0.008 elapsed), 14.677 MUT (15.508 elapsed), 7.081 GC (8.074 elapsed) :ghc>>
text: <<ghc: 30753427672 bytes, 59763 GCs, 117595958/666457240 avg/max bytes residency (14 samples), 1588M in use, 0.000 INIT (0.008 elapsed), 13.713 MUT (13.966 elapsed), 6.220 GC (7.108 elapsed) :ghc>>
2016-05-24 19:00:49 -07:00
Simon Michael
0f5ee154c4
lib: simplify parsers; cleanups ( #275 )
...
The journal/timeclock/timedot parsers, instead of constructing (opaque)
journal update functions which are later applied to build the journal,
now construct the journal directly (by modifying the parser state). This
is easier to understand and debug. It also removes any possibility of
the journal updates being a space leak. (They weren't, in fact memory
usage is now slightly higher, but that will be addressed in other ways.)
Also:
Journal data and journal parse info have been merged into one type (for
now), and field names are more consistent.
The ParsedJournal type alias has been added to distinguish being-parsed
and finalised journals.
Journal is now a monoid.
stats: fixed an issue with ordering of include files
journal: fixed an issue with ordering of included same-date transactions
timeclock: sessions can no longer span file boundaries (unclocked-out
sessions will be auto-closed at the end of the file).
expandPath now throws a proper IO error (and requires the IO monad).
2016-05-23 00:44:19 -07:00
Simon Michael
72bdce39b6
ui: fix a recent reload breakage ( fixes #346 )
...
Commit 0a90ef4 a few weeks ago caused hledger-ui to show wrong balances
after reloading with the g key, if the journal had changed and you had
specified a query on the command line.
Now, journalReloadIfChanged reloads the full journal without filtering,
like journalReload and withJournalDo.
2016-05-20 08:20:08 -07:00
Simon Michael
7f5e09096f
lib: rename JournalContext to JournalParseState
2016-05-18 20:57:34 -07:00
Simon Michael
ea383d88d6
lib: drop "double" build flag
2016-05-18 20:32:58 -07:00
Simon Michael
20bfceff2e
lib: allow multiple files of different format ( #320 )
...
When multiple files are specified with multiple -f options, we now
parse each one individually, rather than just concatenating them, so
they can have different formats.
Directives (like default year or account aliases) no longer carry over
from one file to the next. Limitation or feature ?
2016-05-18 16:41:52 -07:00
Simon Michael
e28ed0c927
stats: "journal file" -> "file"
2016-05-17 19:50:57 -07:00
Simon Michael
4dd7dba771
fix ghc pattern match warning ( #323 )
2016-05-17 18:42:37 -07:00
Simon Michael
59c2d73d14
doc: symlink other package docs into hledger ( #343 )
...
The hledger package tarball now contains a copy of the generated docs
from all the other packages, so that it can build without being in a
source tree.
2016-05-17 10:04:54 -07:00
Simon Michael
89b1cd1e5b
doc: readme for doc directories
2016-05-17 10:03:57 -07:00
Simon Michael
f0c219adaa
add missing benchmark file to cabal tarball ( #342 )
2016-05-17 09:04:53 -07:00
Simon Michael
207922a023
lib: Commodity now has a CommoditySymbol and style
2016-05-08 08:07:27 -07:00
Malte Brandy
913b8e4c19
Add --pivot option with tests and docs ( #323 )
2016-05-06 18:27:35 -07:00
Simon Michael
6cbc0ceb0d
lib: note issues
2016-05-06 17:19:23 -07:00
Simon Michael
e2ce7c4802
doc, tests: clarify what --date2 does
2016-05-06 16:57:24 -07:00
Simon Michael
8dec8b2630
doc: drop commented table
2016-05-06 16:44:29 -07:00
Simon Michael
9a424d77fc
lib: more thorough journal reloading
...
Reloading a journal should now reload all included files as well.
2016-05-02 20:07:53 -07:00
Simon Michael
f3360c8cfe
lib: after reloading a journal, also refilter it ( #314 )
...
After reloading a journal due to a file change, we now also re-apply any
query specified by the options.
2016-04-28 21:47:49 -07:00
Simon Michael
7ec3ebb66b
update tested-with
...
Note we seem to have lost GHC 7.4 compatibility. It should be fixable if
anyone cares.
2016-04-28 17:32:17 -07:00
Simon Michael
a3e975bdb8
doc: use new file-embed to fix ghci cwd dependence
...
See https://github.com/snoyberg/file-embed/issues/18
2016-04-21 08:45:22 -07:00
Simon Michael
91847fc6fd
data-files does not support wildcards after all
2016-04-20 13:23:05 -07:00
Simon Michael
33b5c5dc94
declare generated docs as data-files, sync hpack yamls
2016-04-20 12:47:17 -07:00
Simon Michael
80948d1db7
doc: also commit info files, should fix travis
2016-04-20 12:47:17 -07:00
Simon Michael
a77f0a3835
doc: cli: link to hledger-rewrite add-on
2016-04-20 07:24:51 -07:00
Simon Michael
42c12fe631
cli, ui, web, api: --info, --man, info & man cmds
2016-04-19 19:21:29 -07:00
Simon Michael
57626dc9fb
bal: output CSV item amounts on one line #336
2016-04-19 10:38:40 -07:00
Simon Michael
3d129f6d31
shake: also generate info manuals
2016-04-18 17:54:55 -07:00
Simon Michael
25e2534794
doc: update all docs mentioning -h and --help
2016-04-18 17:00:54 -07:00
Simon Michael
f9362707b6
ui, web, api: fix -h, --help
2016-04-18 16:43:51 -07:00
Simon Michael
8839136f02
cli: fix --help
2016-04-18 15:26:29 -07:00
Simon Michael
6a3a5c60c5
doc: manual cleanups
...
use simpler markup
use pre blocks more consistently
pandoc table experiments
no more right-floating examples, use columns if needed
doc edits
style tweaks
2016-04-17 19:28:16 -07:00
Simon Michael
82f35dddd0
doc: m4 macro for web table of contents
2016-04-16 11:00:39 -07:00
Simon Michael
4c291dc54e
doc: use macros not divs to select web/man content
...
Use slightly clearer m4 macros instead of special divs to mark content
as web only/man only. The temporary doc/*.md files are no longer needed,
slightly more redundant work is done.
2016-04-16 10:09:51 -07:00
Simon Michael
130d259cb1
site: show version links on manuals
2016-04-16 04:44:33 -07:00
Simon Michael
6a97a246dd
doc: use m4 for all manuals, shake cleanup
2016-04-16 03:50:30 -07:00
Simon Michael
e4cff6a30f
tools: .ghci for each package, sets shorter prompt
2016-04-15 16:06:45 -07:00
Simon Michael
990294f53e
doc: fixes for the help command's docs
2016-04-14 19:22:21 -07:00
Simon Michael
bace208e98
doc: document the help command
2016-04-14 18:38:36 -07:00
Simon Michael
b7d2d612a8
hledger: embed main man pages; new help command
2016-04-14 18:38:12 -07:00
Simon Michael
2931bd6085
doc: update some docs mentioning --help
2016-04-13 22:47:02 -07:00
Simon Michael
b73bcda52a
include txt man pages in cabal tarballs
2016-04-13 22:38:53 -07:00
Simon Michael
48f89314d5
hledger: long --help flag shows man page
...
hledger now embeds its man page, and will display it on --help (like
Ledger and git). -h and --help are now different, like git.
2016-04-13 22:32:04 -07:00
Simon Michael
bfa5e14373
doc: generate (and commit) text-rendred man pages
...
Intended for embedding in executables. Quick implementation,
hopefully these are fixed-width and compatible with all terminals.
2016-04-13 22:29:16 -07:00
Simon Michael
588f36d662
rename timelog format to timeclock
2016-04-12 21:13:19 -07:00
Simon Michael
8ee0c7fa76
doc: update man pages
2016-04-12 20:31:17 -07:00
Simon Michael
aecbcf9461
doc: merge last bits of old manual into new one
2016-04-12 20:22:40 -07:00
Simon Michael
b4d491791c
doc: include nroff man pages in cabal tarballs
2016-04-12 11:25:46 -07:00
Simon Michael
b69b149d39
doc: hledger: add more content from old manual
2016-04-10 12:13:38 -07:00
Simon Michael
5754f2bb4a
doc: updates, merge some more from old manual
2016-04-09 14:23:55 -07:00
Simon Michael
e4aaa302ce
doc: use m4 just to assemble main hledger man page
...
I was about to drop the m4 experiment, but.. not yet. I want to split up
the big man pages into chunks that are easier to deal with, so now using
m4 for that (only. Pandoc is taking care of selective content stripping
and other rendering adjustments.)
I've switched the suffix of m4-enabled files from .md.m4 to .m4.md -
less correct but activates more useful editor highlighting.
2016-04-09 13:30:21 -07:00
Simon Michael
5d9d155ca0
doc: misc cleanups
2016-04-07 21:59:30 -07:00
Simon Michael
69542160bb
doc: remove colons from man page headings
2016-04-07 08:55:53 -07:00
Simon Michael
443b870481
site: fix man page TOCs, add combined man page
2016-04-07 08:55:21 -07:00
Simon Michael
bba7909165
doc: m4-based man pages pt 2, missing files
2016-04-06 09:03:01 -07:00
Simon Michael
f3fb1a89f2
doc: exclude web content from nroffs
2016-04-06 08:20:27 -07:00
Simon Michael
24c2e7d471
doc: move man page source and nroff to PKG/doc/
2016-04-06 08:16:38 -07:00
Simon Michael
eab6b110bc
tools: simplify doc filtering class names
2016-04-05 16:17:08 -07:00
Simon Michael
31a754544a
journal: parse account directives
...
We now parse account directives, like Ledger's. We don't do anything
with them yet. The default parent account feature must now be spelled
"apply account"/"end apply account".
2016-04-04 11:35:39 -07:00
Simon Michael
25cd65442a
cli: fix opts parsing regressions from feb
...
Since commit 7aab544 , "-f -" before the command broke command
detection, causing spurious "no such option" errors (and breaking
about 70 functional tests which neither I nor travis noticed).
2016-04-04 11:35:39 -07:00
Simon Michael
2dbe07a666
doc: mark up man pages for man/web rendering
...
And commit the latest nroff output. It'll need retesting.
2016-02-21 02:32:40 -08:00
Simon Michael
494c74f81b
tools: hide package.yaml files to fix travis
...
The latest stack runs a buggy hpack that generates invalid
cabal files. Rename them to future-package.yaml for now.
2016-02-20 19:07:49 -08:00
Simon Michael
7aab544cf6
cli: make argument-less --debug more robust
2016-02-19 22:53:25 -08:00
Simon Michael
01abf4a56d
typo
2016-02-19 17:52:40 -08:00
Simon Michael
82404952ed
doc: manual: mention LEDGER_FILE env var gotcha
2016-02-05 18:06:49 -08:00
Simon Michael
96e1ca7ea1
lib: refactor amount canonicalisation
...
Amount display style canonicalisation code and terminology has been
clarified a bit. Individual amounts still have styles; from these we
derive the standard "commodity styles". In user docs, we might call
these "commodity formats" since a Ledger-compatible commodity directive
would use the "format" keyword.
2015-11-24 01:40:10 -08:00
Simon Michael
4ed27d5d25
doc: add release date to changelogs
2015-10-30 14:09:19 -07:00
Simon Michael
a5fd56223c
bump version to 0.27
2015-10-30 13:21:51 -07:00
Simon Michael
36d97a2e50
update cabal docs and other fields
2015-10-30 13:08:03 -07:00
Simon Michael
2feace32dd
lib: number transactions as they are read
...
And allow looking up transactions by their read order (index),
or the previous/next transactions in the sequence.
2015-10-29 20:12:46 -07:00
Simon Michael
60df129c7b
doc: changelog updates, combined release notes
2015-10-26 06:37:33 -07:00
Simon Michael
6ae14b3f56
doc: update changelogs
2015-10-26 06:09:57 -07:00
Simon Michael
191c2e533f
doc: generate man pages for each package ( #282 )
...
There are now six man pages, one for each main executable and file
format, generated from markdown by the mighty pandoc. They are basically
the content of the user manual, split up and moved into the appropriate
package directory. I've also committed the generated man files.
The man pages' markdown source (hledger/hledger.1.md,
hledger-lib/hledger_journal.5.md etc.) are now the master documentation
files. The plan is to concatenate them (with a little munging) to form
the all-in-one user manual for the website, at release time. This also
separates the hledger.org user manual from the latest doc commits, which
should simplify website management.
2015-10-20 06:26:09 -07:00
Simon Michael
b64f42c2d8
bal, ui: option help tweaks
2015-10-17 11:22:39 -07:00
Simon Michael
7b8c992f5a
register: auto-size amount columns, like hledger-ui
2015-10-10 18:20:40 -07:00
Simon Michael
aee8d2144b
add file to package, really fix build error ( #286 )
2015-10-01 08:46:55 -10:00
Simon Michael
deea422dc1
fix build error ( #242 )
2015-09-29 21:16:51 -10:00
Simon Michael
58b98faf36
balance: wide-char-aware multicolumn reports ( #242 )
2015-09-29 20:54:05 -10:00
Simon Michael
42e2da4bb6
balance, print; more wide char support ( #242 )
...
Simple (non-multicolumn) balance reports containing wide characters
should now align correctly (in apps and fonts that show wide chars as
double width). Likewise, the print command.
2015-09-28 18:33:18 -10:00
Simon Michael
5b5e5eeaf4
register: wide-character-aware layout ( #242 )
...
Wide characters, eg chinese/japanese/korean characters, are typically
rendered wider than latin characters. In some applications (eg gnome
terminal or osx terminal) and fonts (eg monaco) they are exactly double
width. This is a start at making hledger aware of this. A register
report containing wide characters (in descriptions, account names, or
commodity symbols) should now align its columns correctly, when viewed
with a suitable font and application.
2015-09-28 16:12:20 -10:00
Simon Michael
5404eab6c0
add: write all amounts, don't lose price info ( #283 )
2015-09-27 10:24:21 -10:00
Simon Michael
dab12e2d10
add: note another algorithm
2015-08-28 17:57:16 -07:00
Simon Michael
9e9aec957f
print: --match shows the best match for a description
...
This was originally an add-on I used to guess account names for
ledger-autosync. It's nice for quickly looking up a recent transaction
with a guessed or partial description.
2015-08-28 15:10:51 -07:00
Simon Michael
a73c455570
add: fix a bug impairing similar txn matching
...
In some cases (when the same letter pair was repeated) it was not
picking the post similar past transaction. This was due to the
similarity algorithm using the order-dependent Data.List.intersect, when
it should use Set.intersection.
Also added a reference for the algorithm, which is known as the
Sørensen–Dice coefficient.
2015-08-28 13:54:51 -07:00
Simon Michael
74512814ec
cli/ui/web: rename X.Options modules to X.XOptions
...
Make these modules' names more like the heavily-used types they
define (CliOpts, UIOpts, WebOpts). This is consistent with
RawOptions and ReportOptions, and helps with code navigation.
2015-08-28 12:43:51 -07:00
Simon Michael
f3dd5eb830
fix options breakage with GHC < 7.10
2015-08-28 11:17:49 -07:00
Simon Michael
2af8d7598e
cli, web: fix options breakage
2015-08-28 10:49:43 -07:00
Simon Michael
4dd1e9c725
clean up options validation a little
2015-08-28 09:57:01 -07:00
Simon Michael
19c3749b50
balance: move -V helpers to the *Report modules
2015-08-26 10:38:45 -07:00
Simon Michael
e7aa150e52
ui: solidified register screen, added themes
...
- register screen:
- smarter width-sensitive layout, with multi-commodity amounts on one line
- items are sorted in date order
- jumps to the latest item by default, with consistent scroll position
- more prerendering, might speed up movement/paging slightly
- themes! --theme to select, --help to list (current themes: default, terminal, greenterm)
- border tweaks - dropped side borders, added side padding
2015-08-24 16:24:11 -07:00
Simon Michael
49e1840a0f
ui: rewrite the ui using brick
...
hledger-ui (formerly hledger-vty) is now built on brick, a new
declarative UI layer built on vty. This brings much new power, and
should make the UI much easier to grow and maintain.
At this point, functionality and performance are similar to the old
version. There's no journal entries screen, but entering the postings
screen jumps to the latest posting, and layout is better (multiple
commodities are rendered on one line).
Requires unreleased brick from github (HEAD or some branch) for now.
2015-08-24 16:24:11 -07:00
Simon Michael
6fd1e965ed
fix cabal file regression breaking GHC<7.10 ( #280 )
2015-08-21 12:19:43 -07:00
Simon Michael
a1e098c292
balance: re-enable a balance unit test
2015-08-19 20:53:51 -07:00
Simon Michael
cc98ee39f7
balance, lib: --format/StringFormat improvements
...
The balance command's --format option (in single-column mode) can now
adjust the rendering of multi-line strings, such as amounts with multiple
commodities. To control this, begin the format string with one of:
%_ - renders on multiple lines, bottom-aligned (the default)
%^ - renders on multiple lines, top-aligned
%, - render on one line, comma-separated
Also the final total (and the line above it) now adapt themselves to a
custom format.
2015-08-19 20:53:51 -07:00
Simon Michael
69c870c6f0
balance, lib: make StringFormat singular; cleanup
...
Pass around a StringFormat rather than [StringFormat].
Also more balance report item rendering refactoring.
2015-08-19 20:53:50 -07:00
Simon Michael
36dd64cf02
balance, lib: clarify --format implementation
...
The --format option's OutputFormat type was named confusingly like the
--output-format option. It has been renamed StringFormat to distinguish
it from StorageFormat (aka the data file format, referenced by
--output-format). Related code and types have been consolidated.
Also the (single-column) balance report's item rendering has had
some cleanup.
2015-08-19 20:53:49 -07:00
Simon Michael
e485962a70
cli, web: obey the threaded flag again
...
[ci skip]
2015-08-13 11:55:58 -07:00
Simon Michael
3932655bde
lib: expose two functions required by hledger-ui
2015-08-13 11:53:28 -07:00
Simon Michael
fcb7d297c8
use canonical bugs.hledger.org url in cabal yamls
2015-08-13 10:02:06 -07:00
Simon Michael
48e31d4f8c
bump version to 0.26.98
2015-08-12 22:49:04 -07:00
Simon Michael
a9b2e5409c
switch to hpack-generated cabal files
...
The hledger-lib, hledger and hledger-web cabal files are now generated
from the package.yaml files with hpack, plus some manual fixups.
2015-08-12 22:45:08 -07:00
Simon Michael
b91f2b85d0
update hpack package.yaml files
2015-08-12 09:25:28 -07:00
Simon Michael
94094252be
rename historical prices to market prices
...
Simpler and clearer. We now have "transaction prices" (recorded as part
of transaction amounts) and "market prices" (recorded with P
directives). Both are matters of historical record, also this avoids
confusion with the balance command's "historical balances".
2015-08-09 16:20:02 -07:00
Simon Michael
49be1f646e
balance: add -V/--value to show as market value
...
Initial support of market value reporting and currency conversion,
similar in spirit to Ledger's. The balance command now has a -V/--value
flag that converts all the reported amounts using their "default market
price". That is the latest market price (P directive, formerly called
"historical prices") found in the journal for their commodity that is on
or before the report end date.
Unlike Ledger, hledger's -V only uses the market prices recorded with P
directives, ignoring transaction prices recorded as part of posting
amounts (which -B/--cost uses). Using -B and -V together is allowed.
2015-08-09 16:03:16 -07:00
Simon Michael
9da0ab6af9
doc: give hledger a README on hackage (via symlink)
2015-07-21 12:23:31 -07:00
Simon Michael
78018cc24d
tools: yaml definitions for the hledger cabal files
...
Here are hpack package.yaml files for the other hledger cabal files.
These remove a lot of human-error-prone duplication.
They are not used yet as hpack isn't quite mature enough -
when it supports flags and benchmarks we will probably switch.
2015-07-14 17:32:49 -07:00
Simon Michael
087f3a49bc
note older tested-with versions based on hackage builder
2015-07-13 20:23:59 -07:00
Simon Michael
0b2ccdd298
0.26 changelogs/release notes
2015-07-12 17:58:02 -07:00
Simon Michael
3d3c374cc6
update tested-with
2015-07-12 17:36:19 -07:00
Simon Michael
90ae65eda9
cherry pick 0.25.1 changelogs
2015-07-12 15:48:21 -07:00
Simon Michael
e5c0d75117
bump version to 0.26
2015-07-12 15:29:10 -07:00
Simon Michael
2b3bdca6b1
cli: drop shakespeare-text dependency in more places
...
Drop deprecated shakespeare-text dependency for ghc 7.10+ consistently,
not just in one place. Hopefully this will clear the warning
at packdeps.haskellers.com.
2015-07-12 14:58:06 -07:00
Simon Michael
4c6979c3fc
register: comment
2015-06-27 06:40:43 -07:00
Simon Michael
f9f0f16a9c
tools: benchmark cleanup
2015-06-27 06:35:00 -07:00
Simon Michael
89513fc256
stats: support -o/--outputfile, useful for benchmarks
2015-06-25 16:31:57 -07:00
Simon Michael
01db48fcfc
cli: a more robust and featureful bench test
...
The bench script invoked by cabal bench or stack bench now links the
benchmarked code directly, avoiding any dependence on the shell and
$PATH. Also, it reports the journal parse time and the various reports
on the parsed data separately, and runs quicker.
You can get more accurate benchmark times by running with --criterion.
This will usually give much the same numbers and takes much longer.
Benchmarking via simplebench is still available, by running with
--simplebench. In this mode it benchmarks whatever commands are
configured in bench/default.bench. A disadvantage is that it uses the
first "hledger" executable in $PATH, so check which one it reports.
2015-06-25 16:08:27 -07:00
Simon Michael
e516aa6c3c
stats: fix O(n^2) performance, now much faster on large journals
2015-06-19 11:07:35 -07:00
Simon Michael
745f2dd788
cli: a cabal bench test that works
2015-06-18 09:49:51 -07:00
Simon Michael
335deec496
cli: cabal test suite cleanup
2015-06-18 09:48:18 -07:00
Simon Michael
049baed4d8
register: fix a runtime error with amountless postings
2015-06-11 10:16:45 -07:00
Simon Michael
ce5d87177a
update journalFilePathFromOpts haddock
2015-06-04 09:43:15 -07:00
Imuli
49f1744ae5
read multiple files: internals
2015-05-28 10:40:48 -07:00
Imuli
8385da205e
read multiple files: options
2015-05-28 10:40:48 -07:00
Simon Michael
20acc45fbb
activity: don't exclude 0-amount postings by default
2015-05-21 16:38:17 -07:00
Simon Michael
9e2111106b
drop regexpr dependency
2015-05-17 08:32:45 -07:00
Simon Michael
d1f63334ee
handle pending status correctly, add --pending ( #250 )
...
A transaction/posting status of ! (pending) was effectively equivalent
to * (cleared). Now it's a separate state, not matched by --cleared.
The new Ledger-compatible --pending flag matches it, and so does
--uncleared. The equivalent search queries are now status:*, status:!
and status: (the old status:1 and status:0 spellings are deprecated).
Since we interpret --uncleared and status: as "any state except cleared",
it's not currently possible to match things which are neither cleared
nor pending.
2015-05-16 11:51:35 -07:00
Simon Michael
934d217523
changelogs
2015-05-14 13:39:54 -07:00
Simon Michael
077e3c6a02
journal: re-add non-regex aliases, as default ( #252 )
...
The regex account aliases added in 0.24 trip up people switching between
hledger and Ledger. (Also they are currently slow).
This change makes the old non-regex aliases the default; they are
unsurprising, useful, and pretty close in functionality to Ledger's.
The new regex aliases are also available; they must be enclosed in
forward slashes. Ledger effectively ignores these, which is ok.
Also clarify docs, refactor, and use the same parser for alias
directives and alias options
2015-05-14 13:01:50 -07:00
Simon Michael
70d87613f2
some cleanup of debug trace helpers
2015-05-14 13:01:49 -07:00
Simon Michael
61423bdad4
consistently require latest base-compat for sanity
2015-04-29 07:16:08 -07:00
Simon Michael
104cb44d04
fix missing Control.Applicative.Compat ( #245 )
2015-04-29 07:10:55 -07:00
Simon Michael
dac8a784f4
bump version to 0.26 alpha
2015-04-28 13:48:23 -07:00
Simon Michael
1bc9b71f28
bump version to 0.25
2015-04-28 13:42:41 -07:00
Simon Michael
735f818c22
changelogs
2015-04-07 17:14:44 -07:00
Simon Michael
f75849cdd6
fix ghc 7.10 Applicative import warnings ( #239 )
...
Still needed CPP, despite using base-compat.
2015-03-29 16:09:41 -07:00
Simon Michael
592d997438
whitespace
2015-03-29 16:03:23 -07:00
Simon Michael
b52f08603b
avoid a shakespeare/ghc-7.10 build failure ( #239 )
2015-03-29 14:20:33 -07:00
Simon Michael
8e50395b7c
ErrorT -> ExceptT, handle mtl <2.2.1 && >=2.2.1 ( #239 )
2015-03-29 14:16:42 -07:00
Simon Michael
b8b730226f
hledger/hledger-lib: update tested-with
...
Add 7.10 and drop 7.2-7.6 which haven't been tested recently (but should
still work)
2015-03-27 15:44:39 -07:00
Simon Michael
e60eb71467
adapt to GHC-7.10's time-1.5 ( #239 )
2015-03-27 15:42:32 -07:00
Simon Michael
b8974c4bcc
register: update --width help
2015-03-27 08:02:37 -07:00
Simon Michael
414a33f3e4
merge changelog updates
2015-03-15 13:20:55 -07:00
Simon Michael
ee55a76b23
changelog tweak
2015-03-15 11:10:53 -07:00
Simon Michael
c47463332a
allow utf8-string-1 (fix fpco/stackage/#426)
2015-03-15 11:06:53 -07:00
Simon Michael
adf10c238d
update changelogs
2015-02-27 08:37:16 -08:00
Simon Michael
592ae9a28e
timelog: show hours with 2 decimal places, not 1
2015-02-27 08:37:16 -08:00
Simon Michael
372a2d768b
register: use full width, column widths, cleanup
...
Refactored and enhanced the --width option used by register (and other
commands in future). register now uses the full terminal width by
default except on windows. Specifically, the output width is set from:
1. a --width option
2. or a COLUMNS environment variable (NB: not the same as a bash shell var)
3. or on POSIX (non-windows) systems, the current terminal width
4. or the default, 80 characters.
Also, register now accepts a description column width as part of
--width's argument, comma-separated (--width W,D). This adjusts the
relative widths of register's description and account columns, which are
normally about half of (W-40):
<--------------------------------- width (W) ---------------------------------->
date (10) description (D) account (W-41-D) amount (12) balance (12)
DDDDDDDDDD dddddddddddddddddddd aaaaaaaaaaaaaaaaaaa AAAAAAAAAAAA AAAAAAAAAAAA
Examples:
$ hledger reg # use terminal width on posix
$ hledger reg -w 100 # width 100, equal description/account widths
$ hledger reg -w 100,40 # width 100, wider description
$ hledger reg -w $COLUMNS,100 # terminal width and set description width
2015-01-19 13:48:37 -08:00
Simon Michael
8278c13268
cli: on POSIX systems, use terminfo (and curses)
...
When building hledger on a non-windows system, and the new "curses"
cabal flag is true (as it is by default), include the terminfo package.
This will be useful for detecting terminal width and perhaps other
things.
Installation on posix is slightly harder now, since it will need the C
curses dev libraries. The curses flag lets posix users skip that
requirement by adding -f-curses (or cabal might even do that
automatically).
2015-01-19 13:47:43 -08:00
Julien Moutinho
af56ced3b0
lib: add eof parsing checks
2015-01-11 09:45:55 -08:00
Simon Michael
fabf8a743d
changelogs
2015-01-10 22:28:36 -08:00
Simon Michael
6543f44d82
doc: forgot add release date to changelogs
2015-01-10 17:03:44 -08:00
Simon Michael
95ced2da80
balance: fix partially-visible totals row
...
With --no-total in a periodic (non-cumulative, non-historical) balance
report, hide the totals row completely, as in the other modes.
2014-12-27 16:46:37 -08:00
Simon Michael
6da4942633
balance: tweak flags a bit; we now use -N and -T
...
-N doesn't seem to be used by Ledger currently; we'll
use it as shortcut for --no-total.
-T is used by Ledger to set a custom value expression for the final
total. I'm going to take it as a shortcut for --row-total instead.
2014-12-27 15:34:23 -08:00
Simon Michael
ba0623165f
balance: row totals/averages in multicolumn mode
2014-12-27 15:24:45 -08:00
Simon Michael
a719cb8f6e
bump version to 0.25-unreleased
2014-12-26 11:08:20 -08:00
Simon Michael
e77225038f
bump version to 0.24
2014-12-25 11:42:39 -08:00
Simon Michael
4cfec7043a
doc: update changelogs
2014-12-25 11:04:26 -08:00
Simon Michael
62bad65e5b
tighten up status: docs and behaviour a bit ( fix #227 )
...
A status: query term no longer accepts * as a synonym for 1,
which was a bit confusing since 1 matches both * and !.
For now, it takes a value of 1 (true) or anything else (false).
2014-12-24 23:48:23 -08:00
Simon Michael
68a4adb0bd
doc: draft changelogs for all three packages
2014-12-21 12:01:11 -08:00
Simon Michael
e14f39bae0
balance: ignore --drop when displaying in tree mode
2014-12-16 09:11:13 -08:00
Julien Moutinho
c65fea2b4b
lib: fix combineJournalUpdates folding order
...
NOTE: this is important to correctly build JournalContext
NOTE: currently a list reverse must done at the end,
maybe using a Data.Queue would be more efficient.
2014-12-11 04:37:10 +01:00
Simon Michael
855d4e1131
balance: with --tree and --flat, use the last ( fix #219 )
2014-12-05 12:56:33 -08:00
Simon Michael
9ede5cef1e
doc: start release notes
2014-12-02 11:50:44 -08:00
Julien Moutinho
cf28985cf2
lib: move from Text.ParserCombinators.Parsec to Text.Parsec
...
NOTE: required to use liftIO in includedirective
SEE: http://www.vex.net/~trebla/haskell/parsec-generally.xhtml#IO
2014-11-20 10:08:30 +01:00
Simon Michael
9fa22e0398
account aliases (and regexReplace) now support backreferences
2014-10-29 07:46:49 -07:00
Simon Michael
21ed3dc73d
balance: support CSV for multi-column balance reports
2014-10-23 05:11:48 -07:00
Simon Michael
9d1ef010ac
finish previous commit
2014-10-21 17:49:41 -07:00
Simon Michael
9416d12d8a
--output -> --output-file/-o & --output-format/-O, refactor
...
Use two options and less surprising behaviour. Notes:
* a recognised suffix on the output file name can set the format
* but --output-format always wins
* -o - means stdout
* currently these are command-specific options on balance, print, register
* later, --output-file should become a global option
* and --output-format should be available at least on all commands which
support multiple formats. Each command may support a different set of
output formats, which should be listed in its command line help.
2014-10-21 17:14:37 -07:00
Simon Michael
b6774f47a3
balance, print: add -o and CSV output here too
...
Not very elegant yet, but works.
2014-10-21 12:02:23 -07:00
Simon Michael
2dc44cb131
register command cleanups
2014-10-21 12:01:47 -07:00
Simon Michael
b542da133c
cli: add csv dependency
2014-10-20 13:09:41 -07:00
Simon Michael
d234663b6d
register: add -o/--output option, merge CSV functionality (cf #206 )
2014-10-20 13:04:36 -07:00
Simon Michael
301f506486
the --format option shall be known as "line format"
2014-10-20 13:03:44 -07:00
Simon Michael
0620ec9840
fix redundant compilation in the hledger packages, at last
...
This seems to work well now with my haddock and GHC 7.8.
Not tested with GHC 7.6 though.
2014-10-19 09:37:18 -07:00
Simon Michael
f4842726e0
tools: fix warnings in simplebench
2014-10-19 09:34:46 -07:00
Simon Michael
6d67bcb026
cli: --version shows "dev build" when VERSION is undefined
...
Probably only noticeable in GHCI.
2014-10-18 12:36:27 -07:00
Simon Michael
e8a58d9388
cli: add a hidden --version+ flag showing number representation ( #118 )
2014-10-18 12:35:58 -07:00
Simon Michael
84a90374b4
make build warnings consistent
2014-10-18 10:16:22 -07:00
gwern
d1618aaca8
strip trailing whitespace from all Haskell files
2014-10-14 18:48:24 -07:00
Simon Michael
5d403c2bb7
doc: changelogs (resolve conflicts)
...
Conflicts:
hledger-lib/CHANGES
hledger-web/CHANGES
2014-09-12 18:41:35 -07:00
Simon Michael
d7f1733243
remove text upper bound, allowing 1.2+ ( fixes #207 )
2014-09-12 18:36:23 -07:00
Simon Michael
776a973d2c
cli: clarify --debug help
2014-08-08 19:12:20 -07:00
Simon Michael
aa85e786b9
register: describe datespans briefly, like balance
...
Eg instead of 2014/01/01 - 2014/01/31, show 2014/01, as in a multicolumn
balance report. The data model is not very elegant, but works for now.
2014-08-08 07:34:11 -07:00
Simon Michael
f631e8e063
register: --average implies --empty
...
The -A flag now enables -E, so that with a report interval the averages
are always per-period and not per-report-line. (Without a report
interval, -E is already the default).
2014-08-07 14:03:56 -07:00
Julien Moutinho
ec243a1bea
data: fix unit test by ignoring sourcepos
2014-08-07 17:48:04 +02:00
Julien Moutinho
a6190420b2
data: add source location to transactions
2014-08-07 16:38:44 +02:00
Simon Michael
40ab1e17f6
amounts cleanups, and support zeros with commodity
2014-07-28 18:45:13 -07:00
Simon Michael
7fb154f820
balance: include report span in title
2014-07-26 17:29:20 -07:00
Simon Michael
ca43eab47a
balance: simplify multicolumn report titles slightly
2014-07-26 17:09:29 -07:00
Simon Michael
b499ea85eb
register: optimise postingsReportItemAsText a bit
...
Avoid concatTopPadded when rendering register output, making that
command faster when there's a lot of output.
2014-07-07 08:37:27 -07:00
Simon Michael
3a16e6cfc7
mostly replace slow regexpr with regex-tdfa ( fixes #189 )
2014-07-06 14:03:28 -07:00
Simon Michael
16f8b78305
balance: show multi-commodity amts on one line ( fixes #186 )
...
To avoid totally breaking the layout of multicolumn balance reports when
there are multi-commodity balances, these are now rendered on a single
line, comma separated. Simple balance reports still use the old vertical
format for now.
2014-07-03 07:45:55 -07:00
Simon Michael
3669422bbf
make --width and --debug require an argument ( fixes #149 )
...
This is a workaround for a cmdargs limitation. Having "--debug 2"
or "--width 100" produce no output (because the number is parsed
as a separate argument) is too annoying.
2014-07-03 07:31:52 -07:00
Simon Michael
330dfe6891
commodity & amount style parser cleanups, part 2
2014-07-02 17:41:33 -07:00
Simon Michael
0c3148ac7b
add an --ignore-assertions flag
...
Can be helpful when reading Ledger files, where assertions may have
different semantics; or for getting some answers from your journal
to help you fix your assertions.
Could be called --no-assertions, but this might create surprise when it
has an effect contrary to --no-new-accounts.
I had to add another flag throughout the parsers & journal read
functions, ok for now.
2014-07-01 18:26:37 -07:00
Simon Michael
34f4800e82
Revert "remove Setup.hs files again, fixing a yesod devel warning"
...
Setup.hs are required by the Hydra buildbot.
This reverts commit 97ab3db8f0 .
2014-05-24 13:39:09 -07:00
Simon Michael
97ab3db8f0
remove Setup.hs files again, fixing a yesod devel warning
...
These were removed and re-added in 2011 because "hackage needed them".
Let's try again.
2014-05-23 09:04:00 -07:00
Simon Michael
6b059aeb5e
Merge branch 'rdesfo-0.23'
...
Conflicts:
.version
hledger-lib/Hledger/Read/CsvReader.hs
hledger-lib/hledger-lib.cabal
hledger-web/hledger-web.cabal
hledger/hledger.cabal
2014-05-22 16:15:35 -07:00
Ryan Desfosses
b60da51386
made the following changes to resolve deprecated warnings:
...
replaced hamletToRepHtml with giveUrlRenderer
updated type RepHtml to Html
replaced settingsPort with setPort
2014-05-21 07:30:54 -04:00
Ryan Desfosses
38f977fa48
Histogram: fixes previous change
...
change made in Histogram:cabal test and hlint warning
2014-05-14 12:18:50 -04:00
Ryan Desfosses
47853d6df6
Cli: cabal test and hlint warnings
2014-05-11 20:19:36 -04:00
Ryan Desfosses
342bae8c35
Histogram: cabal test and hlint warnings
2014-05-11 19:27:39 -04:00
Simon Michael
fc7acea381
Merge branch 'master' of github.com:rdesfo/hledger into rdesfo
...
Conflicts:
README.md
2014-05-08 14:44:53 -07:00
Simon Michael
2bba4dbe3c
update changelogs
2014-05-08 14:35:20 -07:00
Simon Michael
3113e09a62
bump version to 0.23.2
2014-05-08 14:32:29 -07:00
Simon Michael
6d93fe15d3
update changelogs
2014-05-08 14:32:06 -07:00
Ryan Desfosses
39479638e3
Option: cabal test and hlint warnings
2014-05-07 22:34:41 -04:00
Simon Michael
ec48926a38
update changelog
2014-05-07 16:49:44 -07:00
Simon Michael
4b1714a9e0
bump version to 0.23.1
2014-05-07 16:44:44 -07:00
Simon Michael
6d6aae3cc9
update changelog
2014-05-07 16:43:32 -07:00
Simon Michael
120b3b8377
add: don't apply a default commodity to amounts on entry ( fixes #138 )
2014-05-07 16:37:22 -07:00
Simon Michael
09ebd3e049
cli: options before the add-on are also passed to it ( fixes #182 )
2014-05-07 16:37:22 -07:00
Simon Michael
41add3ffeb
oh fine still cant do that, bump to 0.23.98
2014-05-03 17:18:12 -07:00
Simon Michael
87f1e83d78
bump version to 0.24dev
2014-05-03 15:51:57 -07:00
Simon Michael
cceff52403
add: don't apply a default commodity to amounts on entry ( fixes #138 )
2014-05-03 15:48:20 -07:00
Simon Michael
f7406f77cf
cli: options before the add-on are also passed to it ( fixes #182 )
2014-05-03 15:26:51 -07:00
Simon Michael
07a82724ed
lib, cli, web: change from "beta" to "stable"
...
Also add the hackage Console category to the first two.
2014-05-01 08:20:05 -07:00
Simon Michael
1eeedfe551
bump versions to 0.23
2014-05-01 08:17:17 -07:00
Simon Michael
524bfe73c6
final changelogs
2014-05-01 08:14:36 -07:00
Simon Michael
e6a1339370
cli: options help polish
2014-05-01 07:22:44 -07:00
Simon Michael
66422a7711
cli: more flag cleanups, help layout improvements
2014-04-30 17:40:14 -07:00
Simon Michael
2a1e0f6aff
cli: drop --display from command-line help
2014-04-30 17:39:38 -07:00
Simon Michael
a28d4fd400
register: drop --display, use --historical instead
...
We provided a very limited implementation of --display only for one use
case: to see an accurate running balance. Now that is achieved more easily
with -H/--historical, similar to the balance command, and --display
can be dropped.
2014-04-30 17:24:41 -07:00
Simon Michael
98cc1d0e77
addons: more description strings for test addons
2014-04-30 07:32:10 -07:00
Simon Michael
7d579adb0e
changelog updates
2014-04-28 00:55:14 -07:00
Simon Michael
aee7b3512d
cli: omit the -- from debug output as well
2014-04-27 23:44:24 -07:00
Simon Michael
9418967343
cli: a fix for add-on options after -- (don't pass the -- through)
2014-04-27 23:34:27 -07:00
Simon Michael
d0932cb47a
cli: small cleanup
2014-04-27 23:34:09 -07:00
Simon Michael
f3c90a1351
addons: simplify and firm up add-on command parsing
...
Drop the special case where we hide an add-on's source version if a
compiled version is also present. Better to be simple and explicit.
Improve robustness of command parsing, eg "hledger addon.hs"
will now work even though the command is listed as "addon".
And ignore any add-ons which would shadow a built-in command
(or any of the official command aliases displayed in the command list,
like "bal" and "reg"). Built-ins may not be replaced by an add-on.
2014-04-27 18:48:35 -07:00
Simon Michael
791f6fdd15
expose the accounts command in Hledger.Cli
2014-04-27 18:47:27 -07:00
Simon Michael
7d73ab5264
cli: drop single-letter aliases, keep the familiar three-letter ones where useful
2014-04-27 18:46:34 -07:00
Simon Michael
4b47c1340f
addons: note more issues
2014-04-26 10:49:37 -07:00
Simon Michael
9ce2d6a75a
tools: update test addons
2014-04-26 10:44:31 -07:00
Simon Michael
9a255051e8
addons: try to be smarter about showing file extensions
...
We now hide add-ons' file extensions in the commands list except when
they are needed for disambiguation. There are three cases:
- when an add-on exists with only one file extension, the extension is
not displayed.
- when an add-on has exactly two variants, one with the .[l]hs extension
and the other with none or .exe - presumably the source and compiled
versions - we omit the source version from the list.
- otherwise when an add-on has multiple variants differing by file
extension, they are listed with their extensions displayed.
2014-04-26 10:25:32 -07:00
Simon Michael
eeb48c86d1
default report dates come from secondary dates with --date2
2014-04-24 14:44:30 -07:00
Simon Michael
32f182158e
fix a warning
2014-04-22 17:50:09 -07:00
Simon Michael
e40b587357
addons: another fix for addon detection on windows
2014-04-22 17:49:03 -07:00
Simon Michael
ca499d7f7b
addons: detect more executable file extensions, such as .exe
...
In addition to hledger-X and hledger-X.hs, other common executable file
extensions will be recognised. In particular, on windows hledger now
lists hledger-web.exe as an add-on. The current list is:
bat, com, exe, hs, lhs, pl, py, rb, rkt, sh.
2014-04-22 17:40:06 -07:00
Simon Michael
d46b290287
update tested-withs
2014-04-19 12:16:14 -07:00
Simon Michael
499cf41b03
hledger, web: allow shakespeare 2.*
2014-04-19 12:15:20 -07:00
Simon Michael
1fca3e7472
orDatesFrom -> spanDefaultsFrom
2014-04-19 08:38:03 -07:00
Simon Michael
f94d784f48
changelog updates from release branch
...
give hledger-lib a changelog, update changelogs
(cherry picked from commit a67cee4e5f9e3dc09be86e7bc0e8fd77168a5070)
Conflicts:
hledger/CHANGES
update changelogs
(cherry picked from commit ef053a42523ff2d57921837896b9ccc0a260cc27)
web: changelog
(cherry picked from commit 105c1d01429680a4e8a11a8c4be06f4ceca4329e)
web: changelog
(cherry picked from commit 3d42c123be7dd51be6586549f1f057052cc6fff9)
2014-04-17 12:36:00 -07:00
Simon Michael
c51a7efc9c
changelog update
2014-04-15 17:17:34 -07:00
Simon Michael
9d10cfa180
fix single-quote-containing addon arguments harder
2014-04-15 13:07:43 -07:00
Simon Michael
2af04ec2fc
balance: merge/improve multicol report implementations
...
Periodic, cumulative and historical multicolumn balance reports are now
generated by one code path, which helps with consistency and reducing
the bug/test surface. --tree now also works with --cumulative or
--historical.
2014-04-13 12:49:05 -07:00
Simon Michael
cad37b7dce
balance: fix excessive indent in multicolumn tree mode
2014-04-13 12:49:05 -07:00
Simon Michael
c1485f43bb
drop mention of inter-release issue
2014-04-08 16:10:39 -07:00
Simon Michael
b3ab814478
docs typo
2014-04-08 16:00:41 -07:00
Simon Michael
19eb45cb68
account: add more description in the command-specific help
2014-04-08 15:57:40 -07:00
Simon Michael
2e2312f215
hledger changelog/release notes
2014-04-08 15:54:59 -07:00
Simon Michael
ec42b8d9ee
move towards per-package changelogs, clarify doc/RELNOTES.md status
2014-04-08 15:52:37 -07:00
Simon Michael
7b4b99fae0
accounts: more query support, --flat/--drop/--depth support
2014-04-07 12:13:36 -07:00
Simon Michael
efad3a767d
balance: support --drop in flat multicolumn reports
2014-04-07 08:32:23 -07:00
Simon Michael
f9c1d94b5f
accounts: make accounts a built-in command, listing posted account names
2014-04-07 08:27:50 -07:00
Simon Michael
7d99ae5033
balance: --tree makes multicolumn reports show hierarchy
...
Multicolumn balance reports can now be switched to a hierarchical view
with --tree. This is similar to the single column balance report with
--no-elide, ie we do not elide boring parents into the following line.
The --flat and --tree flags are opposites; the last one to appear on
the command line is decisive (in future, if not already).
2014-04-06 21:56:47 -07:00
Simon Michael
6b5ed3d790
print: drop unnecessary showTransactions
...
refactor the tests later
2014-04-05 19:39:18 -07:00
Simon Michael
5cd3f6ed51
balancesheet, cashflow, incomestatement: less space before Total
2014-04-05 13:35:18 -07:00
Simon Michael
a8122405bf
I see, polymorphic let bindings need a proper type sig
2014-04-03 18:49:57 -07:00
Simon Michael
a1531bcd09
show args processing debug output only at level 2+
2014-04-03 18:49:56 -07:00
Simon Michael
ce888a62d5
restore some options utilities, fix hledger-balance-csv script
2014-03-28 16:33:48 -07:00
Simon Michael
b69e6c6946
unused extensions
2014-03-28 16:23:40 -07:00
Simon Michael
ef1cc06cab
avoid pretty-show with GHC < 7.4; update tested-with ( fixes #155 )
...
hledger builds with GHC 7.2 through 7.8. 7.0 is not supported
because we require shakespeare which requires the DeriveGeneric extension.
2014-03-27 12:29:34 -07:00
Simon Michael
882a9dbf1c
cli, report & raw options cleanups
2014-03-25 19:03:56 -07:00
Simon Michael
3fa4824218
some type signatures
2014-03-25 19:03:55 -07:00
Peter Simons
9e7a7e3439
hledger.cabal: loosen restriction on 'text < 1.1' to fix build with GHC 7.8.x
2014-03-22 12:03:00 +01:00
Simon Michael
d815cca069
incomestatement, cashflow: support --flat and --drop as well
2014-03-21 17:41:22 -07:00
Simon Michael
5a8b5ed082
balancesheet: support --flat and --drop, like balance
2014-03-21 17:34:58 -07:00
Simon Michael
2d1e0d7cd4
move command-specific options to the respective command modules
2014-03-21 10:45:13 -07:00
Simon Michael
59cbc230d8
drop data-pprint for now, does not support ghc 7.8
...
The data-pprint and pretty-show packages used for debugging
tend to be poorly supported, drop one of them for now.
2014-03-19 16:11:46 -07:00
Simon Michael
7d36789b74
web: fix build failures caught by the bot
2014-03-19 08:45:52 -07:00
Simon Michael
4d8d0d9aa6
balance: make BalanceReport more like MultiBalanceReport, doc cleanups
2014-03-18 18:01:24 -07:00
Simon Michael
5df28069fb
restore the test command, hidden
2014-03-18 14:08:28 -07:00
Simon Michael
92dc86ebae
restore reg & bal aliases, even if not advertised
2014-03-18 13:47:13 -07:00
Simon Michael
3bc3e533c8
remove unused import
2014-03-18 13:46:47 -07:00
Simon Michael
814008d648
add: also let enter end transactions if no more default postings
...
To end a transaction, period is required because there might be another
default posting being suggested, and enter usually means "accept the
default". But having to switch back and forth from enter to period
during data entry is a bit unergonomic, requiring too much thought.
Now, in the (common) case where you have entered a balanced transaction
and there are no more default postings to suggest, enter is also allowed
to end the transaction. Experimental; this might be too inconsistent.
2014-03-16 09:29:09 -07:00
Simon Michael
88d52a9da8
cli: don't list both source and exe of an addon
2014-03-16 09:27:07 -07:00
Simon Michael
d1b9273b19
cli: tighten up commands list, better help for known addons
2014-03-15 13:20:24 -07:00
Simon Michael
7cbbd0fbab
add: fix over-zealous cleanup caught by hydra, continued
2014-03-06 17:50:46 -08:00
Simon Michael
8e6922c57c
add: fix over-zealous cleanup caught by hydra
2014-03-06 17:49:52 -08:00
Simon Michael
63eca19a7f
add: refactor completion functions
2014-03-06 16:58:48 -08:00
Simon Michael
856f62b465
add: fix runtime printf error from 2nd txn on ( fixes #164 )
2014-03-05 12:48:13 -08:00
Simon Michael
97e3f852a1
bump version to 0.22.98 aka 0.23 alpha
2014-03-04 11:17:56 -08:00
Simon Michael
61d2c28bd9
hledger: sigh, more cabal file snafu
2014-03-04 11:16:38 -08:00
Simon Michael
fd04430ae4
also add wizards dependency to the test executable
2014-03-04 11:09:34 -08:00
Simon Michael
27cf33f887
debug message wording
2014-03-04 11:04:31 -08:00
Simon Michael
ebf42046d8
add: keep using historical txn accounts as defaults even after a custom amount is entered
2014-03-03 12:18:10 -08:00
Marko Kocić
b01166c760
Update hledger.cabal
2014-03-03 09:47:28 +01:00
Marko Kocić
3cdb293f33
Fix broken hledger.cabal
2014-03-03 09:18:18 +01:00
Simon Michael
dd2f293094
rename FormatString to OutputFormat
...
It was going to be Format, but that clashes with file format. Press on.
2014-03-02 13:33:56 -08:00
Simon Michael
d89367d75e
add: make input prompts green, where supported
...
Because we can! Should have no effect where not supported.
2014-03-01 11:16:19 -08:00
Simon Michael
5d0da63261
add: don't print an extra newline on exit
...
even it made things tidier in an emacs shell..
2014-03-01 11:15:29 -08:00
Simon Michael
1051f10826
add: also accept . at date prompt to quit
2014-03-01 11:15:19 -08:00
Simon Michael
e50c2a4259
add: avoid quotes preserved in quoted cli args
2014-03-01 11:08:31 -08:00
Simon Michael
dcdb032d96
add: rewrite using wizards and make it more robust
...
The code is now much more manageable, faciliating further
improvements. Completion now works at all prompts, and
will insert the default value if the input area is empty.
Account and amount defaults are more robust and useful
in various situations. There might be a slight regression
with default commodity handling.
2014-02-27 18:15:49 -08:00
Simon Michael
204af487a5
note an issue with CliOpts query_
2014-02-27 17:39:38 -08:00
Simon Michael
bab6ec041b
cli: be more robust at finding hledger-* add-ons
...
Previously executables with eg digits in their name were ignored.
It now finds all files beginning with hledger-, optionally ending with
.hs or .lhs, and with no other dots in the name.
As before, we don't check for executable permission (performance ?).
2014-02-27 11:40:41 -08:00
Simon Michael
8d3161f6d6
add: cleanup, cleanup
2014-02-23 15:04:28 -08:00
Simon Michael
6bf08cdd7c
add: hack apart getPostingsLoop into smaller pieces
2014-02-23 07:52:26 -08:00
Simon Michael
56abdb2c8c
add: code cleanups
2014-02-21 09:07:52 -08:00
Simon Michael
e35614c88d
add: clarify "accept"
2014-02-21 07:23:10 -08:00
Simon Michael
f34d3aa9d6
add: clarify runInteraction*
2014-02-20 11:15:05 -08:00
Simon Michael
41a58609fb
add: output a final newline after control-d
2014-02-12 08:22:44 -08:00
Simon Michael
d158d401d9
fix some breakages found by Hydra
2014-02-05 19:30:01 -08:00
Simon Michael
ac95930b15
Hledger.Cli now re-exports Hledger and System.Console.CmdArgs.Explicit
2014-02-05 18:55:03 -08:00
Simon Michael
2ec6231a51
bump version to 0.22.1
2014-01-08 15:01:45 -08:00
Simon Michael
62b0461c0e
require latest pretty-show to allow install with standard happy and fix hackage docs
2014-01-08 15:00:41 -08:00
Simon Michael
4c1b2c0f86
remove obsolete regex-compat-tdfa dependency from hledger
2014-01-08 14:48:28 -08:00
Simon Michael
8befcb8354
bump version to 0.22, update tested-with & doc building
2013-12-13 18:28:45 -08:00
Simon Michael
060c9c73d0
hledger: allow text 1.0
2013-12-13 17:43:52 -08:00
Simon Michael
044ba78693
help fix, -V is not equivalent to --version ( #145 )
2013-12-07 15:35:58 -08:00
Simon Michael
5bdc55ab77
note that getCliOpts, debugArgs api fns are unused
2013-12-07 06:10:45 -08:00
Simon Michael
8261ac0f56
three fixes to handle --debug=N like --debug
2013-12-07 06:09:39 -08:00
Simon Michael
8bbd22d7ed
fix handling of --debug before command
2013-12-07 05:51:17 -08:00
Simon Michael
c53732a4af
balance: new multi-column reports & documentation
...
Two new multi-column balance report modes show ending balance per
period: `--cumulative`, starting from 0, and `--historical`, starting
from the historical starting balance.
The balance command's specification has been clarified and consolidated
in the Balance.hs haddock. Reports.hs has also had haddock updates. The
old AccountsReport type is now BalanceReport, still used by
single-column balance report. The new MultiBalanceReport type is used by
the multi-column reports.
2013-12-07 05:43:31 -08:00
Simon Michael
b2c6a8e7d2
require data-pprint 0.2.3, works with ghc < 7.2
2013-12-06 13:58:06 -08:00
Simon Michael
c99f37241c
allow an optional level argument with --debug
2013-12-06 13:30:36 -08:00
Simon Michael
6e7610c1b7
drop some experimental pprint logging
2013-12-06 13:26:08 -08:00
Simon Michael
3eac48871c
require data-pprint 0.2.3, works with ghc < 7.2
2013-12-06 13:22:28 -08:00
Simon Michael
7e06a6a24c
balance: basic multi-column balance (change) reports
2013-09-26 15:06:48 -07:00
Simon Michael
eb5e2f95e9
cashflow: don't ignore the report start date ( fixed #135 )
...
Odd, there may have been s reason to do this but I can't remember it.
2013-09-23 11:08:55 -07:00
Simon Michael
b44efdcb4e
don't depend on an unreleased version of data-pprint ( fixes #140 )
2013-09-23 10:46:52 -07:00
Simon Michael
009c7e3f90
bump version to 0.22 alpha
2013-09-22 22:38:27 -07:00
Simon Michael
a66a715eeb
command line options API updates, possibly fixing hledger-web build
2013-09-22 22:31:06 -07:00
Simon Michael
13f8c0f938
overhaul command line processing
...
Command line processing has been overhauled and made more consistent,
and now has tests and extensive debug output. More flags now work
both before and after COMMAND: -f, --rule-file, --alias, --help,
--debug, --version. Command line help, command aliases, API docs and
code have been improved.
2013-09-22 01:17:41 -07:00
Simon Michael
671bb6c4a2
require data-pprint as a debugging aid and make some types compatible with it
2013-09-21 13:36:43 -07:00
Simon Michael
a3900c80b2
make hledger-cli.hs executable
2013-09-21 13:34:40 -07:00
Simon Michael
7ed0705398
register: --average/-A shows a running average, like ledger
2013-09-09 18:25:53 -07:00
Max Bolingbroke
e96fff7887
Upgrade to regex-compat-tdfa to squelch unicode problems
2013-08-20 21:19:28 +01:00
Simon Michael
e4c76acb12
balancesheet: don't bother showing equity, it won't be useful for most of us
2013-07-23 16:47:54 -07:00
Simon Michael
318d36d712
bump version
2013-06-23 16:50:35 -07:00
Simon Michael
39f6ec9f04
tools: fix make ghci, ghciweb
...
In general, when cabal CPP macros like min_PKG are used, they should
be made optional. If they are not present, assume a developer is
building and choose the latest libs.
2013-06-06 15:26:40 -07:00
Simon Michael
4eda6119f8
bump version to 0.21.2
2013-06-04 19:07:22 -07:00
Simon Michael
557419de8c
bump version to 0.21.1
2013-06-03 23:18:30 -07:00
Simon Michael
4041f5a553
bump version to 0.21
2013-06-01 15:58:06 -07:00
Clint Adams
180521996a
Add cabal testsuite for hledger.
2013-05-15 15:56:05 -04:00
Simon Michael
4ff2635bf8
bump version to 0.20.98 (0.21 alpha)
2013-05-14 10:30:46 -07:00
Simon Michael
1db8920644
bump version to 0.20.0.1
2013-05-04 07:26:15 -07:00
Simon Michael
28a605ceb0
docs: update bug tracker and repository locations in cabal files
2013-05-03 06:46:23 -07:00
Simon Michael
b89168d1b0
bump version number
2013-05-01 12:46:37 -07:00
Simon Michael
a32b0513bd
update tested-withs. hledger needs 7.2+, hledger-web needs 7.4+ for now
2013-04-19 12:26:05 -07:00
Simon Michael
fc39b4c25d
the version bump was premature, revert so I can push
...
This reverts commit 1bc8b73159 .
2013-04-19 11:54:26 -07:00
Simon Michael
1bc8b73159
bump version
2013-04-17 17:20:59 -07:00
Simon Michael
2bb120d6c6
register: fix -w related test breakage, another width tweak ( #102 )
...
As part of adding -w in december I cleaned up/adjusted register field
widths, and didn't make all the tests pass. This commit makes one more
width adjustment
(one space after the date instead of two) and fixes all tests depending on register output.
2013-04-12 14:56:41 -07:00
Simon Michael
af5c0e80e0
parsing: read files in universal newline mode
...
Line endings other than the unix style, are now accepted in journal and rules files.
2013-03-29 18:46:10 +00:00
Simon Michael
1adc583975
make hledger-web installable with GHC < 7.6 again
...
Revisiting the "directory 1.2 can be installed with older GHC, so we'd better pin it in the cabal file" change.
Requiring directory 1.2 made hledger-web uninstallable with GHC < 7.6 because current yesod depends on ghc
which depends on a particular directory version and can't be upgraded. This is a smarter fix, which should let
all hledger packages build with whatever directory version is installed.
2013-03-19 01:22:09 +00:00
Simon Michael
bbfd91e7ea
directory 1.2 can be installed with older GHC, so we'd better pin it in the cabal file
...
hledger now requires directory >= 1.2. This might make installation
more complex on old GHC versions; if it turns out to be needed,
perhaps it can be conditionalised again, more accurately, in the cabal file.
2013-03-11 15:56:56 +00:00
Simon Michael
47a4c52904
add: tweak output
2013-03-05 20:18:10 +00:00
Simon Michael
edcfd2abb1
add: handle partial dates on the command line, instead of failing after all data entry
2013-03-05 02:08:53 +00:00
Simon Michael
5785eae38e
add: show the transaction and confirm before adding it, or allow restart
2013-02-25 20:52:43 +00:00
Simon Michael
a33b42bbd9
update tested-with in cabal files
2013-02-25 19:50:49 +00:00
Simon Michael
314da705f8
add: fix compilation with GHC 7.4 and perhaps older
2013-02-25 19:49:03 +00:00
Simon Michael
2eba34514f
add: mention code/comment entry in help
2013-02-24 21:30:56 +00:00
Simon Michael
10d83a9252
add: allow transaction code and transaction/posting comments/tags to be entered ( #45 )
...
- A transaction code may be entered following the date in parentheses, eg: DATE (CODE)
- A transaction comment (possibly containing tags) may be entered following the description, eg: DESC ; COMMENT
- A posting comment may be entered following the amount, eg: AMOUNT ; COMMENT
2013-02-24 21:16:03 +00:00
Simon Michael
7025c6f66a
add: more code cleanup
2013-02-24 20:05:31 +00:00
Simon Michael
8aba692926
add: cleanups
2013-02-24 18:35:42 +00:00
Simon Michael
4f1ce14033
add: use command line arguments as defaults for first txn (part 2)
...
It seems I missed some.
2013-02-24 18:09:04 +00:00
Simon Michael
bf91efda7c
add: use command line arguments as defaults for first txn
...
With one or more command line arguments, they will used as defaults
for the first transaction, and history will be ignored. Subsequent
transactions will use history for defaults (and now only the best match
from history is shown).
2013-02-24 02:07:58 +00:00
Simon Michael
c8e2751aa5
add: < at any prompt restarts the current transaction ( #47 )
2013-02-23 01:44:45 +00:00
Simon Michael
7fcd45614b
add: ui cleanups
...
- tidier output
- show more help
- suggest . only for recording, not for quitting (though it still works)
- show each transaction after adding it (#52 )
- don't parse . as a zero amount
- don't show [] when there's no default
2013-02-23 00:57:16 +00:00
Simon Michael
2a6a028222
register: date display refinements
...
- when showing multiple postings from a transaction, show their individual dates accurately
- with --date2, use that date for sorting
2013-02-14 21:12:35 +00:00
Simon Michael
7175c57992
reg: --related/-r flag to show other postings in the transaction
2012-12-22 00:24:38 +00:00
Simon Michael
552a15a1ba
reg: --width/-w option to adjust register overall output width
2012-12-21 21:56:11 +00:00
Simon Michael
621a91807e
rename actual/effective dates to primary/secondary
...
The command-line flag is now --date2. Alternate spellings --effective and --aux-date
are accepted for compatibility.
2012-12-06 04:43:41 +00:00
Simon Michael
20e68f23a8
support effective dates on postings as well
...
We now preserve all dates while reporting, instead of overwriting one with the other.
2012-12-06 02:41:37 +00:00
Simon Michael
e75abc4625
parse posting dates, better comment/tag handling, begin using HTF for unit testing
2012-12-06 00:28:23 +00:00
Simon Michael
b2b429c9e4
refactor: dead code
2012-12-06 00:04:09 +00:00
Simon Michael
4aafeb32e6
refactor: clean up Posting construction
2012-12-06 00:03:07 +00:00
Simon Michael
157c85a915
move stripbrackets to Utils
2012-12-04 00:03:42 +00:00
Simon Michael
c553103caf
bump version
2012-11-27 23:53:16 +00:00
Simon Michael
1d8fe29c4c
docs: point to new repo location on darcs hub
2012-11-17 04:31:21 +00:00
Simon Michael
26a37bf3df
web: quick fix for "Prelude.read: no parse" errors with GHC >= 7.6
2012-11-24 15:13:14 +00:00
Simon Michael
64180b18ef
refactor: clarify that price amounts have only a single commodity
2012-11-19 23:17:55 +00:00
Simon Michael
4567e91409
refactor: move amount display settings out of commodity, simplify amount construction
2012-11-19 21:20:10 +00:00
Simon Michael
7798744d60
should have released hledger-lib; bump all version numbers again
2012-11-24 16:01:19 +00:00
Simon Michael
d22be3ac30
bump hledger & hledger-web versions
2012-11-24 15:34:53 +00:00
Simon Michael
5b9c5459be
web: make hledger[-lib] compatible with all of yesod's language extensions
...
Useful when building all of hledger-web at once.
2012-11-14 17:25:02 +00:00
Simon Michael
ef73894889
redo bad fix to balancesheet, cashflow, incomestatement commands
...
I had this crazy idea shakepeare-text interpolation syntax had changed
when these failed in hledger-web dev builds. It was CPP of course.
2012-11-17 03:22:58 +00:00
Simon Michael
cfbd8bb956
web: update for yesod 1.1.3
...
Build with latest yesod. Also reorganise to conform more closely with
yesod's standard scaffold layout to reduce upgrade effort.
2012-11-15 17:48:48 +00:00
Simon Michael
9786894bbb
bump version, release notes
2012-11-17 03:32:48 +00:00
Simon Michael
c1ab41f0a9
hledger, hledger-lib: support GHC 7.6
2012-10-08 16:52:07 +00:00
Simon Michael
00f22819ae
balance report speedup
...
This refactoring fixes an O(n^2) slowdown in the balance command with
large numbers of accounts. It's now speedy, and the implementation is
clearer. To facilitate this, the Account type now represents a tree of
accounts which can easily be traversed up or down (and/or flattened
into a list).
Benchmark on a 2010 macbook:
+-------------------------------------------++--------------+------------+--------+
| || before: | after: | |
| || hledger-0.18 | hledgeropt | ledger |
+===========================================++==============+============+========+
| -f data/100x100x10.journal balance || 0.21 | 0.07 | 0.09 |
| -f data/1000x1000x10.journal balance || 10.13 | 0.47 | 0.62 |
| -f data/1000x10000x10.journal balance || 40.67 | 0.67 | 1.01 |
| -f data/10000x1000x10.journal balance || 15.01 | 3.22 | 2.36 |
| -f data/10000x1000x10.journal balance aa || 4.77 | 4.40 | 2.33 |
+-------------------------------------------++--------------+------------+--------+
2012-10-21 17:18:18 +00:00
Simon Michael
51a9f2a948
bump version
2012-10-21 20:20:35 +00:00
Simon Michael
f03b020e2f
set version with CPP instead of cabal-file-th; make building more robust
...
hledger and hledger-web were reading their version number (and program
name) from their cabal files at compile time using cabal-file-th,
which allowed the version number be maintained in one place (per
package).
This meant you had to be in same directory as the cabal file when
building, which made life more complicated, eg emacs compilation mode
could not jump to errors. Also, it slowed down building slightly, and
is a factor in hledger Debian packages being unavailable on a number
of platforms (we also use TH for report templates).
Now, the build version is set with a CPP VERSION flag, which seems
simpler overall. For cabal builds, this needs to be configured
manually in a few more places in each cabal file. For makefile builds,
it is set it to the name of the most recent darcs tag (which should be
more useful than the old behaviour). If not set, it defaults to the
blank string, useful eg for haddock. And, all makefile builds now run
from the top directory.
2012-10-13 19:21:17 +00:00
Simon Michael
7fec954cbf
support latest cmdargs, haskeline, split
2012-10-08 16:50:35 +00:00
Simon Michael
f8a9cce43d
bump base lower bound to 4.3 to enforce GHC 7 requirement
2012-07-08 00:22:20 +00:00
Simon Michael
63973c3728
bump version to 0.18.2
2012-07-08 00:24:40 +00:00
Simon Michael
0b96a767b4
support tilde (~) in journal and rules file paths
2012-05-30 08:36:01 +00:00
Simon Michael
34318906d8
register, print: fix reverse ordering of same-day transactions
2012-06-29 18:06:58 +00:00
Simon Michael
6ccecb6ae0
stats: list included journal files
2012-05-30 09:17:18 +00:00
Simon Michael
6db9db0be1
bump version
2012-06-29 23:09:19 +00:00
Simon Michael
ed1ea545f5
make --rules-file work again
2012-03-24 19:53:07 +00:00
Simon Michael
50068221c3
fix build warnings in all GHC versions
2012-03-29 21:19:35 +00:00
Simon Michael
31f3e4dc27
balance: accept "bal" without complaining about ambiguity with balancesheet
2012-04-14 20:33:15 +00:00
Simon Michael
3441c2d816
unneeded imports
2012-04-21 00:23:52 +00:00
Simon Michael
d30cd5847a
a simplistic cashflow statement to complete the trio
2012-04-17 17:32:56 +00:00
Simon Michael
483eb09a82
show proper help for balancesheet/incomestatement
2012-04-14 20:33:48 +00:00
Simon Michael
df6ee91e38
hledger-lib, hledger will require GHC >= 7.0 due to use of shakespeare-text QQ in reports
2012-05-06 20:41:40 +00:00
Simon Michael
b584f33cbb
Cli, Cli.Test module doc updates
2012-05-09 15:29:14 +00:00
Simon Michael
6b280d8970
add missing text, shakespeare-text deps
2012-05-14 16:25:23 +00:00
Simon Michael
b6e5028071
fix compiler warning
2012-05-16 06:40:52 +00:00
Simon Michael
294a350993
promote Hledger.Query to second level
2012-05-16 07:57:10 +00:00
Simon Michael
0616499b97
update cabal files
2012-05-29 02:52:16 +00:00
Simon Michael
722c3a489f
update cabal dependencies after dropping convert
2012-03-26 00:36:41 +00:00
Simon Michael
98274b481d
more build warnings
2012-05-06 20:44:23 +00:00
Simon Michael
d0bf2667c2
bump version
2012-05-28 21:08:05 +00:00
Simon Michael
1f1a1eb16f
bump version
2012-03-30 00:27:23 +00:00
Simon Michael
7f3b990394
docs: fix api docs
2012-03-07 16:05:04 +00:00
Simon Michael
2fb2aea056
rename metadata fields to tags
2012-05-27 22:59:06 +00:00
Simon Michael
3ee6a351f3
big query/tests/show refactoring
...
- use new query system for command line too, filterspec is no more
- move unit tests near the code they test, run them in bottom up order, add more
- more precise Show instances, used for debugging not ui
2012-05-27 18:14:20 +00:00
Simon Michael
1654776f4a
refactor test runner
2012-05-14 19:23:12 +00:00
Simon Michael
db4d853a3f
refactor: move readJournal'
2012-04-14 01:10:39 +00:00
Simon Michael
197f35cb5b
unit test exposing sample journal parse failure
2012-05-09 15:30:43 +00:00
Simon Michael
a628964016
prepare to support full query expressions on command line
2012-05-16 08:31:06 +00:00
Simon Michael
88afea8c44
balancesheet: ignore start dates, always show the accurate balance from all transactions up to the specified end date
2012-04-17 02:28:30 +00:00
Simon Michael
65a20c6870
separate account types in balancesheet, show totals with consistent layout
2012-04-16 16:55:30 +00:00
Simon Michael
1e2c2bb10c
hook up more tests, begin converting remaining reports to Query
2012-05-17 04:21:34 +00:00
Simon Michael
a58a5f96ad
more robust comments & metadata, on postings too, and document as "tags"
2012-05-14 18:52:22 +00:00
Simon Michael
88212f26e8
simplify journal parser names
2012-05-09 15:34:05 +00:00
Simon Michael
c23d1793ae
docs: clarify supported GHC versions
2012-03-29 22:09:54 +00:00
Simon Michael
e1b1b8bce8
rename Matcher to Query, simplify constructors
2012-05-16 07:12:49 +00:00
Simon Michael
8c7eea9ee0
make incomestatement respect options
2012-04-16 16:45:24 +00:00
Simon Michael
b4b2b67236
incomestatement: show revenue and expense accounts separately
2012-04-15 00:05:10 +00:00
Simon Michael
abb470aadb
use shakespeare-text to help lay out incomestatement's output
2012-04-14 20:35:51 +00:00
Simon Michael
a27eb7c29f
more matcher -> query renaming
2012-05-16 07:37:24 +00:00
Simon Michael
8492f6cae4
fix unicode handling on GHC >= 7.2, unify utf8 IO compatibility layer
...
tests pass again from GHC 6.12.3 to 7.4.1
2012-03-29 19:06:31 +00:00
Simon Michael
ca5d5020e1
prototypical incomestatement and balancesheet commands
2012-04-14 01:34:56 +00:00
Simon Michael
b96e3ac85d
drop convert command
2012-03-24 19:40:06 +00:00
Simon Michael
00a43cd1bf
Hledger.Cli.Format -> Hledger.Data.FormatStrings
2012-03-10 19:20:15 +00:00
Simon Michael
a1297daae2
cashflow: forgot th' module
2012-04-17 18:27:28 +00:00
Simon Michael
e396c0dc8d
push csv rule and format string types down
2012-03-24 01:58:34 +00:00
Simon Michael
6eb7ad28e1
refactor/beef up readJournal/readJournalFile
2012-03-23 16:21:41 +00:00
Simon Michael
a26ecdb3e3
true-by-default threaded flag for hledger, allowing non-threaded builds on some debian architectures (Clint Adams)
2012-01-02 17:42:43 +00:00
Simon Michael
13e0757670
less obscure error when the journal file path contains a tilde
2012-01-03 12:12:37 +00:00
Simon Michael
26ad00a659
support and require latest cmdargs
2012-01-05 18:25:15 +00:00
Simon Michael
917a35d62b
allow building with cmdargs 0.9
2012-01-02 17:43:26 +00:00
Simon Michael
3e3af47b96
bump cmdargs upper bound in other places
2012-01-03 11:00:35 +00:00
Simon Michael
1bc4d4b395
refactor: clarify mixed amount normalising a bit
2012-01-01 00:39:13 +00:00
Dmitry Astapov
7426e93ec6
Testcase+fix for commodity being reported more than once per account in balance
2011-12-25 21:21:27 +00:00
Simon Michael
0d8a7c935b
fix import warning
2012-02-02 05:27:07 +00:00
Simon Michael
c686645fab
refactor: update version number handling
2012-01-31 06:01:31 +00:00
Simon Michael
6b784c0e65
bump version
2012-02-02 05:37:02 +00:00
Simon Michael
9329873cef
bump version to "0.17 alpha"
2012-01-31 05:18:18 +00:00
Simon Michael
62454b45ff
update tested-with fields
2012-01-30 04:21:03 +00:00
Simon Michael
db7f4d1b3d
use cabal-file-th to get executable name and version from cabal files
2011-10-19 19:53:42 +00:00
Simon Michael
4fb325b92a
bump version
2011-10-04 23:53:50 +00:00
Simon Michael
9a6328adeb
comment
2011-09-14 19:46:31 +00:00
Simon Michael
33f6277e0d
cli: hledger ADDONCOMMAND --version now shows add-on command's version
2011-09-14 02:32:44 +00:00
Simon Michael
fcb4a39089
when running addons with --debug, show the command line
2011-09-17 04:19:26 +00:00
Simon Michael
6ca155edc0
convert: don't reverse order of transactions
2011-09-19 03:10:16 +00:00
Simon Michael
353e3f2d55
convert: always order converted transactions by date
2011-09-21 06:04:18 +00:00
Simon Michael
de502e732b
drop unused TIMELOG env var
2011-09-21 23:12:53 +00:00
Simon Michael
556e3c9246
cli: give literal tilde error also with -f
2011-09-21 23:10:44 +00:00
Simon Michael
f79b272ff3
balance: ledger compatibility fix: don't elide parent accounts with multiple displayed subaccounts
2011-09-22 20:40:06 +00:00
Simon Michael
6ddf394119
add: clearer prompts, more validation, use . to end as well
2011-09-23 03:51:45 +00:00
Simon Michael
17b1fcefed
rename/update doc
2011-09-23 14:09:12 +00:00
Simon Michael
c9f1f5c663
strip the -- when calling addon commands, so their options work ( #64 )
2011-09-23 14:10:27 +00:00
Simon Michael
fffb15c1ae
add: avoid excess whitespace between transactions ( #46 )
2011-09-25 17:47:55 +00:00
Simon Michael
9b2a5f56e1
only the add and web commands auto-create the journal file
2011-09-23 03:53:14 +00:00
Simon Michael
992ce48093
convert: use full option name in error message
2011-09-27 23:54:49 +00:00
Simon Michael
780dc878c7
convert: currency -> base-currency
2011-09-27 23:55:07 +00:00
Simon Michael
7d3b1f4a55
convert: in-field, out-field -> amount-in-field, amount-out-field
2011-09-28 00:13:42 +00:00
Simon Michael
fe6f37753f
convert: give an error instead of a silent zero amount from amount-in-field/amount-in-field
2011-09-28 00:14:42 +00:00
Simon Michael
9a0a0be01c
docs: whitespace
2011-09-23 14:27:26 +00:00
Simon Michael
602ccceeec
convert: give a useful error, not a null date when parsing fails; refactor
2011-09-28 17:12:43 +00:00
Simon Michael
5eeadad160
add: refactor, note default precision issue
2011-09-30 23:26:11 +00:00
Simon Michael
b0b1f7d733
bump version
2011-10-01 17:17:02 +00:00
Simon Michael
fa5f09f06a
handle multiple filter patterns on the command-line again
2011-09-11 20:37:04 +00:00
Simon Michael
b46ffbac14
don't give a confusing error with -f and no command
2011-09-11 21:35:06 +00:00
Simon Michael
8a50cb1289
don't pass an addon command's name to it as an extra argument
2011-09-11 21:48:13 +00:00
Simon Michael
f37d7b5659
bump version
2011-09-12 22:52:24 +00:00
Simon Michael
4db6c2881a
cli: fix an accidental parsec 3 dependency
2011-09-02 18:52:44 +00:00
Simon Michael
c834f4a8af
bump version for all but hledger-lib, due to hledger fix
2011-09-02 19:25:31 +00:00
Simon Michael
ae02ca68dd
doctest comment fix
2011-04-23 14:54:26 +00:00
Simon Michael
171c0e73ea
convert: fix recent breakage causing zero amounts
2011-05-31 22:09:05 +00:00
Simon Michael
c562412964
convert: fix amount-field/in-field/out-field validation
2011-06-02 21:23:53 +00:00
Simon Michael
3617bc1a79
convert: fix --rules warning
2011-06-02 22:37:45 +00:00
Simon Michael
5784587208
convert: warn if there is neither amount-field or in & out-field
2011-06-02 22:56:17 +00:00
Simon Michael
92777edc99
docs: haddock tweaks
2011-04-29 03:25:52 +00:00
Simon Michael
cd68f43be3
cli: rename hledger.hs (but not the executable) to avoid mac build issues
2011-07-17 23:21:48 +00:00
Simon Michael
a44aa8d7d2
refactor: remove unnecessary LANGUAGE CPP pragmas
2011-07-17 23:29:57 +00:00
Simon Michael
cbb0fc5c59
move basic reports into hledger-lib
2011-08-15 22:59:06 +00:00
Simon Michael
85f83c00fc
drop some old base 3 support
2011-08-15 22:59:15 +00:00
Simon Michael
02a43f1e40
slightly improve help layout
2011-08-19 18:28:50 +00:00
Simon Michael
e005625780
web: account register now obeys --cost and --effective flags like the rest
2011-08-19 18:30:03 +00:00
Simon Michael
17fbc9de14
another part of add-on command detection that was missed
2011-08-25 23:13:08 +00:00
Simon Michael
dc43ca2d00
easier to roll back this one than merge
2011-08-22 14:52:47 +00:00
Simon Michael
b39c0f8819
would like to react to --version before --help, cmdargs does it first though
2011-08-20 19:18:10 +00:00
Simon Michael
4e91387ab3
fix a warning
2011-08-25 23:14:12 +00:00
Simon Michael
e67c63dc54
don't fail if PATH is not defined
2011-08-25 23:50:34 +00:00
Simon Michael
ec9e06e33e
don't fail when PATH contains bad directories
2011-08-25 23:36:25 +00:00
Simon Michael
7616ed9b8e
haddocks
2011-08-26 00:46:52 +00:00
Simon Michael
96628feee9
make the old ledger-compatible command names primary for now
2011-08-28 19:49:26 +00:00
Clint Adams
5ead6d05b1
update to cmdargs 0.8 API
...
Between 0.7 and 0.8, modeArgs changed from
modeArgs :: Maybe (Arg a)
to
modeArgs :: ([Arg a], Maybe (Arg a))
2011-08-30 21:41:25 +00:00
Simon Michael
b2e80554e6
convert: convert stdin when no csv file is specified
2011-08-20 19:59:20 +00:00
Simon Michael
464d8d4bcb
hledger now detects and runs hledger-* add-ons found in path; many options cleanups
2011-08-22 14:55:39 +00:00
Simon Michael
98509d4bbc
fix a bogus error with -f and no command
2011-08-16 22:23:05 +00:00
Simon Michael
3fa9fab9a4
fix warning
2011-08-19 19:20:43 +00:00
Simon Michael
1f5f1b5e78
convert: don't fail when there's no default journal file
2011-08-20 19:49:07 +00:00
Simon Michael
676845b269
trim even more fat from amounts
2011-08-31 17:44:20 +00:00
Simon Michael
4104114d4e
harmonise package descriptions, make them hackage-compliant
2011-09-02 00:28:27 +00:00
Simon Michael
9e056d573e
Setup.hs is needed after all, by hackage
2011-09-02 00:29:50 +00:00
Simon Michael
10fd7ebc42
simplify amounts code, make tests pass
2011-08-31 16:54:10 +00:00
Simon Michael
1273f02a9a
more balance/amount clarifications and a test
2011-08-30 11:37:36 +00:00
Simon Michael
9aaf489a38
readability cleanups
2011-08-28 22:16:58 +00:00
Simon Michael
6a61c96481
whitespace
2011-06-24 02:41:37 +00:00
Simon Michael
059825a9b2
optionsgeddon.. port to cmdargs and a fully modal cli
2011-08-15 22:50:09 +00:00
Simon Michael
c3954cad43
cli: fix typo in previous patch
2011-05-29 19:42:37 +00:00
Simon Michael
7d46ae6141
runTestsOrExit
2011-06-13 21:44:08 +00:00
Trygve Laugstol
dca66a63a7
convert: Adding support for formatting expressions in description-field
2011-06-27 22:59:07 +00:00
Clint Adams
6544ec02fc
account2-field
2011-06-03 01:13:00 +00:00
Simon Michael
6496c1ef61
raw journal report -> journal entries report
2011-08-07 16:24:09 +00:00
Simon Michael
63f790b94e
small reports cleanups
2011-08-04 08:26:55 +00:00
Simon Michael
ce30cb2cbe
refactor: try to get these report names under control
2011-07-19 00:49:11 +00:00
Simon Michael
47b1142d49
move reports back to Hledger.Cli for now, forgot they still depend on cli options
2011-07-18 23:30:40 +00:00
Simon Michael
e4c4405c62
refactor: simplify some imports
2011-07-17 23:05:56 +00:00
Simon Michael
df7dc1464e
refactor: move basic report generation to hledger-lib
2011-07-17 23:47:52 +00:00
Simon Michael
c461104a53
web: fix warning
2011-07-01 00:46:41 +00:00
Simon Michael
f9ce624ef0
web: separate journal & register urls, ui tweaks, code refactoring
2011-07-15 21:58:46 +00:00
Simon Michael
5ed70248d4
web: refactor, fix a sign bug in register
2011-07-01 02:17:31 +00:00
Simon Michael
8424caddc6
web: don't merge different accounts with similar leaf name in postings summary
2011-07-01 00:48:30 +00:00
Simon Michael
29ac7f0d4f
web: another whack at register account field, simpler now
2011-07-01 00:32:45 +00:00
Simon Michael
35b3c0d37e
web: simple register balance chart, using flot
2011-06-30 00:29:57 +00:00
Simon Michael
918b3b45a5
web: make register item display a bit more consistent
2011-06-29 20:18:10 +00:00
Simon Michael
c572addaa0
fix warnings
2011-06-27 13:27:26 +00:00
Simon Michael
fcc8d6f8ee
fix journal register matching
2011-06-27 14:15:53 +00:00
Simon Michael
d83553661f
refactor: layout
2011-06-28 22:31:56 +00:00
Simon Michael
f18952d298
refactor: remove duplicated balance report code
2011-07-17 15:53:51 +00:00
Simon Michael
58a50c2ff1
balance: --no-elide prevents collapsing of boring accounts to line
2011-06-14 19:39:00 +00:00
Simon Michael
8d0b42e1d5
web: an "a" parameter specifies a query expression for filtering the accounts sidebar
...
Useful for ui experiments, at least
2011-06-28 22:34:45 +00:00
Simon Michael
ec426d620c
web: make journal register work like account registers; show multiple postings
2011-06-27 13:14:33 +00:00
Simon Michael
69744730cd
refactor: move stuff
2011-06-24 19:58:01 +00:00
Simon Michael
224cab068f
haddock
2011-06-24 14:20:30 +00:00
Simon Michael
33a1c6533b
refactor: clarify the two register types, "posting register" and "account register"
...
See the docstrings for details. Possibly temporary names, but at least
make the naming consistent and distinct.
2011-06-24 02:44:31 +00:00
Simon Michael
4637e5b018
keep haddock happy
2011-06-24 01:30:16 +00:00
Simon Michael
b165f796cc
web: start txn-centric register refactoring, account register shows most recent first
2011-06-24 01:29:01 +00:00
Simon Michael
9fac61eb0d
web: in account register, show multiple postings as a single "split"
...
Clicking on one of these currently goes nowhere.
2011-06-14 19:10:57 +00:00
Simon Michael
d35fbac422
web: inacctsubs: includes subs in an account register, with confusing balance
2011-06-14 14:29:31 +00:00
Simon Michael
b137a346c0
web: make a filtered account register's Total column positive, like a journal register
2011-06-13 21:39:00 +00:00
Simon Michael
1a88879734
web: more account register fixes; heading shows "Balance" or "Total" appropriately
2011-06-13 19:49:34 +00:00
Simon Michael
06331c71a8
account register balance not right.. more fixes and plans
2011-06-12 22:35:54 +00:00
Simon Michael
c9c6be27c0
don't show subaccounts in account register report
2011-06-11 18:35:56 +00:00
Simon Michael
94709e5139
preliminary single-account register report
2011-06-11 16:11:38 +00:00
Simon Michael
ca9b4fcdd5
--help tweak
2011-08-07 16:52:35 +00:00
Simon Michael
13acc458e1
alias docs fixes
2011-08-05 00:40:57 +00:00
Simon Michael
957c349780
--alias command-line option
2011-08-05 00:05:39 +00:00
Simon Michael
30b7448f45
parsing: alias/end aliases directives, like ledger's but a bit more powerful
2011-08-04 08:45:18 +00:00
Simon Michael
4015e02097
account directive should preserve virtual/balanced virtual posting type
2011-08-02 23:29:13 +00:00
Simon Michael
d025daa8a9
drop unused SubTotal option
2011-08-07 17:10:34 +00:00
Simon Michael
513846e8c2
refactor: explicit sibling imports is better style here
2011-08-07 20:22:35 +00:00
Simon Michael
5c8e533ba9
import cleanups
2011-06-06 19:04:21 +00:00
Trygve Laugstøl
8412225ba5
add-in-and-out-field-rules-for-convert
...
* Support in-field and out-field for CSV files that use two columns for each kind of movement.
2011-05-29 21:50:59 +00:00
Trygve Laugstol
28dbb8864f
Adding basic ledger FORMAT parser.
2011-06-20 21:33:26 +00:00
Simon Michael
c565b2606d
simplify api, optsToFilterSpec just needs a day not a time
2011-06-13 23:28:39 +00:00
Simon Michael
e7c6ee3dc3
refactor: convert to cost-basis at report time, not startup time
2011-06-03 03:29:57 +00:00
Simon Michael
eb6395e91c
fix that refactoring for web handlers
2011-06-03 02:52:08 +00:00
Simon Michael
96aa9bfc76
matcher improvements, tests
2011-06-11 18:35:20 +00:00
Simon Michael
6a185bc51f
refactor: abstract regular expression lib
2011-06-05 18:31:19 +00:00
Trygve Laugstøl
170154edfb
explicit-rules-file-argument-and-converting-stdin
...
* Adding support for telling which rules file to use with "--rules FILE".
* Adding support for using stdin when converting files.
2011-05-29 19:22:55 +00:00
Simon Michael
5084280879
imports, api cleanup
2011-05-28 04:11:44 +00:00
Simon Michael
9734ed47a6
web: acct: -> in:/inacct:, match only one account (CI exact string match on full name), old acct: re-enabled
2011-06-08 22:02:49 +00:00
Simon Michael
2e754b79a2
clarify meaning of balance report item's indent field
2011-06-14 21:28:21 +00:00
Simon Michael
dc7a692a19
refactor: remove costbasis and whichdate from FilterSpec
2011-06-03 02:14:36 +00:00
Simon Michael
910e5c2bee
bump version
2011-09-02 00:42:50 +00:00
Simon Michael
883bc240c9
cli: cabal dependency fixes
2011-07-18 23:24:54 +00:00
Simon Michael
cfb26463b7
hledger.cabal: note self-depending issues and revert to the old way of building
2011-06-01 18:23:46 +00:00
Simon Michael
997ab43c35
cli: cabal updates, try to depend on self, don't use deprecated test api
2011-05-29 04:51:53 +00:00
Simon Michael
ac5059ea53
bump version
2011-05-24 04:28:21 +00:00
Simon Michael
754cc59804
fix some warnings
2011-05-21 02:48:20 +00:00
Simon Michael
7554cc7f9b
installing: don't require newer process after all, too many problems
2010-12-25 19:53:21 +00:00
Simon Michael
24c578bcd4
fix for "reorganize tests"
2010-12-29 01:35:41 +00:00
Simon Michael
eac34e85fa
histogram: honour the specified start or end dates
2011-01-14 04:18:58 +00:00
Dmitry Astapov
a87c016615
Hledger.Cli.Commands renamed to Hledger.Cli, updating .cabal accordingly
2011-01-20 23:07:33 +00:00
Simon Michael
6208ed017b
treat arguments as possibly-encoded platform strings, not unconditionally utf-8
2011-01-21 01:16:55 +00:00
Simon Michael
6a845eb5e4
i18n: always read and write UTF-8, ignoring current locale ( #34 )
...
Also remove a bunch of CPP conditions.
Uses the GHC-version-independent UTF-8 layer from pandoc.
2011-01-21 01:24:51 +00:00
Dmitry Astapov
b9ae208bd5
Added support for effective-date-field to the "convert" operation
2011-01-23 20:48:28 +00:00
Dmitry Astapov
c78fe9dd5d
Added account-field to Convert.hs
2011-01-22 09:37:25 +00:00
Dmitry Astapov
e37d3a522d
Forgot to take accountField into account while calculating max. field index
2011-01-23 20:34:03 +00:00
Eric Kow
18a53194b2
Avoid offering account names for completion in inapproriate contexts.
2011-03-12 19:59:35 +00:00
Eric Kow
9f539f0138
Remember default account even if user submits a different amount.
...
The use case here is spending that fits a certain template, but
whose amount tends to vary (for example, daily lunch at a cafe).
2011-03-12 19:41:14 +00:00
Eric Kow
3ae989e8cb
Move getPostings arguments into a record.
...
This seems like the kind of function that can get increasingly sophisticated
as the UI gets smarter. A single argument record could lend a certain
stability, and we're not likely to lose much in partial application terms.
2011-03-12 19:32:01 +00:00
Max Bolingbroke
8c3aa657b6
Add support for date-format conversion directive
2010-12-21 17:57:06 +00:00
Dmitry Astapov
2c771f3d7f
Allow amounts with total price in the input to "hledger convert"
2011-04-10 15:01:26 +00:00
Simon Michael
e96dfc639e
support "every N day/week/month/quarter/years" reporting intervals
2011-01-14 02:35:00 +00:00
Simon Michael
b2f439eb11
try showing integral "maxprecision" amounts without the .0 (except in add's defaults, where it helps)
2011-01-20 00:17:32 +00:00
Simon Michael
961a6f09eb
docs: update copyright dates
2011-04-18 17:36:28 +00:00
Simon Michael
cc656b72c7
remove unnecessary pragmas
2011-04-19 00:43:49 +00:00
Simon Michael
49b291d284
docs: tweak
2011-04-19 01:12:29 +00:00
Simon Michael
7ee69f5ed8
docs: harmonise/update package descriptions
2011-04-19 00:50:47 +00:00
Simon Michael
b159f74a4c
zero amounts have no sign or commodity, and amounts with different prices are aggregated, like ledger
2011-04-22 13:50:05 +00:00
Simon Michael
e973868995
bump version
2011-04-18 06:53:50 +00:00
Simon Michael
9f66549b5a
bump version to alpha
2011-01-21 01:27:39 +00:00
Simon Michael
d369d1f72a
docs: misc
2011-01-20 15:30:22 +00:00
Simon Michael
d3663b818e
parsing: better international number format support ( #32 )
...
This allows period and comma to be used for decimal point and digit group
separator or vice versa, and also flexible digit groups. See
http://en.wikipedia.org/wiki/Decimal_separator . Digit group separators
are possibly not worth the trouble and might not stay.
2011-01-19 12:32:18 +00:00
Simon Michael
dd9e78a67a
reorganize tests
2010-12-27 20:26:22 +00:00
Simon Michael
a85e9bf68b
fix hledger cabal file, cleanup
2010-09-10 01:45:12 +00:00
Simon Michael
27a0900ea9
fix some tests
2010-11-14 20:03:49 +00:00
Simon Michael
811e71aba7
price precisions don't influence display precision; balancing is based on display precision ( #23 )
...
Like ledger, price amounts are now "unobserved", ie their precision does
not affect the canonical display precisions used when displaying amounts,
and transaction balancing is done based on display precision, ie amounts
are considered to balance if their sum appears to be zero when using the
canonical display precision.
2010-11-14 22:44:37 +00:00
Simon Michael
e707f97847
parsing: parse transaction and posting metadata, though we don't use it yet
2010-11-13 22:17:32 +00:00
Judah Jacobson
bb43c2c750
Finish the "add" command after an end-of-file.
2010-11-15 03:13:42 +00:00
Simon Michael
a3a7a346ac
uniquify reader module names
2010-11-15 07:01:46 +00:00
Simon Michael
5d45f5b387
add: update help message
2010-11-16 15:09:33 +00:00
Simon Michael
ea903ffe6e
add: more tests, bugfixes for add's commodity/precision handling; make all tests pass
2010-11-16 15:08:06 +00:00
Simon Michael
e93474e873
cli: require newer process version to assist cabal-install
2010-11-26 20:36:28 +00:00
Simon Michael
27ad4d7efe
briefer, more informative usage error messages
2010-11-29 01:08:19 +00:00
Simon Michael
93b1f2b0ca
more correct args parsing, fix account filtering in hledger-web
2010-11-29 00:37:21 +00:00