Commit Graph

5372 Commits

Author SHA1 Message Date
Simon Michael
f1c5cce575 lib: another doctests fix, replace wrong haddock char 2017-07-31 07:09:06 -07:00
Simon Michael
dbef13b13f lib: more consistent deps, fixing doctests with Cabal 2 (fixes #596) 2017-07-31 07:09:06 -07:00
Simon Michael
f16052b992 tools: setversion: keep (and require) upper bound in hledger deps 2017-07-30 15:00:44 -07:00
Simon Michael
87e281a45d restore upper bounds on hledger packages
I dropped these last month, perhaps without meaning to.
They probably should stay. hledger-ui (eg) will still build
with minor updates of hledger-lib or hledger, but will require
either a release or a hackage revision to build with a major
update.
2017-07-30 11:42:52 -07:00
Simon Michael
ecfc8224dd lib: cleanup up megaparsec 6 compat module, simplify error type (#594) 2017-07-28 07:53:02 -07:00
Simon Michael
d7d5f8a064 add support for megaparsec 6 (fixes #594)
Older megaparsec is still supported.
Also cleans up our custom parser types,
and some text (un)packing is done in different places
(possible performance impact).
2017-07-27 19:20:46 -07:00
Simon Michael
dccfa6a512 examples: borrowing
[ci skip]
2017-07-27 12:56:35 -07:00
Simon Michael
b9571bd088 bal/bs/cf/is: consistently separate columns with a double space
Previously, amounts wider than the column headings would be separated
by only a single space. Also there was an extra space before the first
column.
2017-07-27 09:09:03 -07:00
Simon Michael
ae312d83df install: hledger-iadd 1.2.3 (cf #591)
[ci skip]
2017-07-27 05:06:25 -07:00
Simon Michael
8851ebc29f bs/cf/is: support --output-file and --output-format=txt|csv
The CSV output should be reasonably ok for dragging into
a spreadsheet and reformatting.
2017-07-25 19:43:45 -07:00
Simon Michael
71b206dfc5 lib: writeOutput clarification 2017-07-25 16:04:00 -07:00
Simon Michael
7204b1b9a1 lib: make output-file and output-format flags available separately
Kind of.. the output-file flag's help mentions output-format
2017-07-25 16:03:59 -07:00
Simon Michael
f49756231a refactor compoundBalanceCommandMultiColumnReport etc. 2017-07-25 16:03:59 -07:00
Simon Michael
9d1ef30ecb install: bump hledger-diff version (and installer version)
This should fix hledger-diff being reinstalled every time.

[ci skip]
2017-07-25 14:32:37 -07:00
Simon Michael
48d909c695 refactor compoundBalanceCommandMultiColumnReport etc., more correct docs 2017-07-25 14:28:52 -07:00
Simon Michael
5d93c39922 clarify balance report/cumulative/historical/tree mode shenanigans 2017-07-25 13:55:54 -07:00
Simon Michael
783c4c155c whitespace 2017-07-25 13:51:26 -07:00
Simon Michael
a25a8f868c bs/is: fix tests 2017-07-25 13:23:16 -07:00
Simon Michael
f0119ec9c1 refactor compoundBalanceCommand 2017-07-25 13:22:03 -07:00
Simon Michael
115ed3aead bs/is: show a trailing blank line in single column reports, for consistency 2017-07-25 12:46:56 -07:00
Simon Michael
9d4d6ebc4d bs/cf/is: show one trailing blank line, not two 2017-07-25 12:43:56 -07:00
Simon Michael
11202c897a bs: merge pretty.test 2017-07-25 09:33:43 -07:00
Simon Michael
c89bec0e17 bs/is: don't let an empty subreport disable the grand totals (fixes #588) 2017-07-25 09:21:09 -07:00
Simon Michael
083df72582 refactor: BalanceCommand -> CompoundBalanceCommand
More verbose, but also more precise.
2017-07-25 09:21:09 -07:00
Simon Michael
d4f09efc95 refactor balanceCommand 2017-07-25 09:21:09 -07:00
Simon Michael
117ab0ca4c refactor: BalanceView -> BalanceCommandSpec, cleanups 2017-07-25 09:21:09 -07:00
Simon Michael
5fca083ad2 BalanceView wording, mention case insensitivity 2017-07-25 09:21:09 -07:00
Simon Michael
422e0923f1 refactor BalanceView 2017-07-25 09:21:09 -07:00
Simon Michael
9b9a1a7a30 help: mention -h & output options in default output 2017-07-24 22:19:57 +01:00
Simon Michael
8313695306 doc: journal: update sample in generated manuals 2017-07-24 22:19:25 +01:00
Simon Michael
0df616cdfe site: contributing: link hledger-iadd
[ci skip]
2017-07-24 06:31:47 +01:00
Simon Michael
05afdb0be1 finance: latest gratipay txns
[ci skip]
2017-07-22 18:58:01 +01:00
Felix Yan
70b14c2518 Allow vty 5.16
It builds and works fine here.
2017-07-21 09:37:01 +01:00
Simon Michael
cb693cd7ca stack: bump recommended resolver to lts-8.23
[ci skip]
2017-07-21 09:35:34 +01:00
Simon Michael
7e9e29a942 site: download: recommend the install script; cleanups 2017-07-21 09:33:07 +01:00
Simon Michael
f20592e10c install: doc tweaks, note resource usage
[ci skip]
2017-07-21 09:32:17 +01:00
Simon Michael
4db2897765 site: docs: get help -> get help/give feedback 2017-07-21 09:30:20 +01:00
Simon Michael
a1b62ec769 install: show own version properly when piped into bash
[ci skip]
2017-07-20 18:09:59 +01:00
Simon Michael
fabcda2132 install: more doc tweaks, show installer's version
[ci skip]
2017-07-20 09:08:21 +01:00
Simon Michael
9b6bad20a4 install: resolver notes
[ci skip]
2017-07-20 08:20:02 +01:00
Simon Michael
bf2e529228 install: many improvements
- install stack to $HOME/.local/bin for easier upgrade and passwordlessness
- install missing and out-of-date official and third party hledger tools
- try installing each tool individually
- try cabal install if cabal is installed and stack isn't
- always specify the resolver for stack install
- be fairly quiet by default, replace --quiet with --verbose
- --status shows installation status without doing anything
- --version shows installer version
- cleanup

[ci skip]
2017-07-20 07:53:43 +01:00
Simon Michael
ebd4be7b97 install: do require bash, for simplicity
Supporting generic sh would mean testing with at least bash and dash.
/bin/bash will pretty much be always available ?

[ci skip]
2017-07-19 08:57:29 +01:00
Simon Michael
8fb0b6886c api: show program name in --version output, like other tools
[ci skip]
2017-07-17 17:39:23 +01:00
Simon Michael
7d7c932a2d install: doc fixes
[ci skip]
2017-07-17 17:17:52 +01:00
Simon Michael
d0c2dec45e installer: start of an easy hledger installer script, based on stack's
[ci skip]
2017-07-17 16:46:42 +01:00
Simon Michael
45eeb06ebc bin: tags: remove unused import 2017-07-16 07:24:30 +01:00
Simon Michael
45e9c9d632 stack, site: update stack yaml files, sync with download page
[ci skip]
2017-07-16 07:24:13 +01:00
Nissar Chababy
53ea4f9135 Update Arch Linux command
`hledger` is is now part of Arch Linux [community] so it's now available directly from `pacman`
2017-07-16 07:02:45 +01:00
Simon Michael
395938932f site: download: include slower but more reliable explicit resolver flag
[ci skip]
2017-07-15 10:05:31 +01:00
Nicholas Niro
93fbc0e989 lib: Fix of a bug with the -H option.
This patch fixes a bug that happened when using the -H option on
a period without any transaction. Previously, the behavior was no
output at all even though it should have shown the previous ending balances
of past transactions. (This is similar to previously using -H with -E,
but with the extra advantage of not showing empty accounts)
2017-07-15 08:02:03 +01:00