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
fdd7feefdb
lib: make Journal a monoid
2016-05-18 15:08:50 -07:00
Simon Michael
6ed0369cdc
lib: note transaction idx only counts journal txns
2016-05-18 15:06:57 -07:00
Simon Michael
7e84b4d643
lib: rename get/setIndex, add increment fn
2016-05-18 15:06:16 -07:00
Simon Michael
80e8caebe7
func. test for 320
2016-05-18 13:10:41 -07:00
Simon Michael
975e3274ea
stats: fix func test
2016-05-17 19:52:19 -07:00
Simon Michael
e28ed0c927
stats: "journal file" -> "file"
2016-05-17 19:50:57 -07:00
Simon Michael
84097b75c7
journal: can now include timeclock/timedot files ( #320 )
...
journal files can now include journal, timeclock or timedot files (but
not yet CSV files). Also timeclock/timedot files no longer support
default year directives.
The Hledger.Read.* modules have been reorganised for better reuse.
Hledger.Read.Utils has been renamed Hledger.Read.Common and holds
low-level parsers & utilities; high-level read utilities have moved to
Hledger.Read.
2016-05-17 19:46:54 -07:00
Simon Michael
4dd7dba771
fix ghc pattern match warning ( #323 )
2016-05-17 18:42:37 -07:00
Simon Michael
ec507955e1
journal: simplify parse error
2016-05-17 10:06:51 -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
695d96231c
test numbering
2016-05-13 22:10:23 -07:00
Simon Michael
9c130e1850
lib: journal: hlint cleanups!
...
Hopefully still backward compatible.
2016-05-13 22:09:39 -07:00
Simon Michael
16ee07cc52
remove temp type
2016-05-13 20:44:21 -07:00
Simon Michael
4063df0530
stack: add some required newer deps from hackage
2016-05-11 07:13:21 -07:00
Simon Michael
a569bf73c6
web: update wai-handler-launch for better startup ( fixes #226 )
2016-05-11 06:45:01 -07:00
Simon Michael
29d4f1c03f
ui: build faster, latest brick/vty uses microlens
2016-05-11 06:32:32 -07:00
Simon Michael
4d36b04856
stack: bump snapshot to lts-5.16
2016-05-11 06:30:57 -07:00
Simon Michael
9197c0545f
doc: journal: improve amount, virtual posting docs
2016-05-10 07:58:38 -07:00
Simon Michael
7a616d6779
doc: journal: commodity directive, amount formats ( #295 )
2016-05-08 21:10:58 -07:00
Simon Michael
ddefec412f
journal: also allow one-line commodity directives
2016-05-08 20:56:34 -07:00
Simon Michael
b583cb327d
lib: fix a warning
2016-05-08 20:55:59 -07:00
Simon Michael
9304aa1100
journal: commodity format directive overrides inferred style ( #295 )
...
The commodity directive's format subdirective can now be used to
override the inferred style for a commodity, eg to increase or decrease
the precision. This doesn't fix the root cause of #295 but is at least a
good workaround.
2016-05-08 09:07:08 -07:00
Simon Michael
2c0ef877eb
journal: parse and store commodity formats
2016-05-08 09:06:54 -07:00
Simon Michael
207922a023
lib: Commodity now has a CommoditySymbol and style
2016-05-08 08:07:27 -07:00
Simon Michael
8312573fed
tests for #295
2016-05-07 18:34:24 -07:00
Simon Michael
1b674cbb44
web: show a proper not found page on 404
2016-05-06 19:30:23 -07:00
Simon Michael
aac67b3d4d
lib: fix parsedate haddock
2016-05-06 19:02:48 -07:00
Malte Brandy
913b8e4c19
Add --pivot option with tests and docs ( #323 )
2016-05-06 18:27:35 -07:00
Simon Michael
f559cc8949
travis: add --no-haddock-deps, should work now
2016-05-06 18:16:59 -07:00
Simon Michael
ce344f9b96
lib: fix a haddock error
2016-05-06 18:16:12 -07:00
Simon Michael
e9c6c1ef5e
lib: convert date hunit tests to doctests
2016-05-06 18:10:49 -07:00
Simon Michael
c9a892eabe
lib: remove hopefully superfluous comment
2016-05-06 17:40:33 -07:00
Simon Michael
a52fd599c4
lib: more compact Show instance for datespans
2016-05-06 17:23:24 -07:00
Simon Michael
884c0b8a58
reg: fix sorting regression with --date2 ( #326 )
...
And rewrite/clarify postingsReport.
2016-05-06 17:19:43 -07:00
Simon Michael
6cbc0ceb0d
lib: note issues
2016-05-06 17:19:23 -07:00
Simon Michael
e7a1eb627f
journal: export parsing helpers, fix warning
2016-05-06 16:58:07 -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
2c21ca9bf4
web: update wai-launch-handler location
2016-05-04 11:43:02 -07:00
Simon Michael
2dc375e0f8
site: home: shrink heading to fit 320px screens ( #324 )
2016-05-04 11:34:19 -07:00
Simon Michael
5f3ec5827d
site: home: fix semicolon placement
2016-05-04 11:33:58 -07:00
Simon Michael
525ca6041d
lib: tweak balance assertion message
2016-05-04 09:08:53 -07:00
Simon Michael
0a90ef4658
ui: preserve --ignore-assertions & flags on reload
2016-05-02 20:12:11 -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
a4dc094be3
travis: try another way to show git/stack version
2016-04-29 09:06:20 -07:00
Simon Michael
a036d5cf18
travis: report git & stack versions as well
2016-04-29 06:58:56 -07:00
Simon Michael
1de722a34a
update wai-handler-launch git reference for stack
2016-04-29 06:58:49 -07:00