Commit Graph

3881 Commits

Author SHA1 Message Date
Simon Michael
94e7d026d6 doc: dev guide: benchmarking 2015-08-23 10:23:20 -07:00
Simon Michael
e5f383d8f4 tools: commit dev.hs, for misc. dev testing 2015-08-23 10:20:12 -07:00
Simon Michael
0df43a15a1 tools: stack yaml cleanup 2015-08-23 09:36:42 -07:00
Simon Michael
6fd1e965ed fix cabal file regression breaking GHC<7.10 (#280) 2015-08-21 12:19:43 -07:00
Simon Michael
780549b448 tools: travis: build only the master branch 2015-08-21 11:57:13 -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
7aecbac851 lib: split up Utils more 2015-08-19 20:53:50 -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
2b339667e2 Merge branch 'perf-polyparse' (early part) 2015-08-13 13:10:10 -07:00
Simon Michael
632a000f08 derive NFData in a way compatible with GHC < 7.10
The DeriveAnyClass extension requires GHC 7.10, so instead do this in a
more verbose backwards-compatible way. Adds a dependency on deepseq.
2015-08-13 12:58:44 -07:00
Simon Michael
790d42bfa4 derive NFData (and Generic) for all types
so we can benchmark things more easily with criterion.

As well as NFData, the Generic instance and a bunch more GHC extensions
seemed necessary. This is a little scary, impact unknown.
2015-08-13 12:58:35 -07:00
Simon Michael
42d452f99c abstract parsec's SourcePos so as to derive NFData
The NFData instance helps us time things with criterion.
2015-08-13 12:56:15 -07:00
Simon Michael
c158779212 doc: dev guide: more tweaks
[ci skip]
2015-08-13 12:32:30 -07:00
Simon Michael
6420e83dc4 tools: more stack tweaks for travis
[ci skip]
2015-08-13 12:30:23 -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
64cc886bb5 ui: update cabal file, readme, changelog 2015-08-13 11:52:10 -07:00
Simon Michael
207ae772d4 ui: revive the curses UI, now named hledger-ui 2015-08-13 11:22:40 -07:00
Simon Michael
25146b09e2 tools: use latest stack in travis build 2015-08-13 10:46:44 -07:00
Simon Michael
fcb7d297c8 use canonical bugs.hledger.org url in cabal yamls 2015-08-13 10:02:06 -07:00
Simon Michael
9536db384d bump stack resolver to lts-3.0 2015-08-13 08:16:54 -07:00
Simon Michael
97a691cbad tools: update package version in yaml files now 2015-08-12 22:51:17 -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
1d957720e3 vty: make hledger-vty buildable again
Just for fun and curiousity, hledger-vty once again builds, with hledger
HEAD and GHC 7.10, and has a stack config. To see it once again in all
its glory:

$ cd extra/hledger-vty
$ stack install
$ hledger vty [-- ARGS]

[ci skip]
2015-08-11 19:16:58 -07:00
Simon Michael
986896b021 doc: readme: fix badge typo
[ci skip]
2015-08-11 15:51:33 -07:00
Simon Michael
930628805b doc: dev guide, readme: clean up badges, links 2015-08-11 15:48:59 -07:00
Simon Michael
cae3c756ed doc: dev guide: fix table layout, link updates 2015-08-11 15:36:38 -07:00
Simon Michael
51873fde19 doc: readme, dev guide: more badges 2015-08-11 15:25:38 -07:00
Simon Michael
45698b03cf doc: readme: fix a line break with github markdown 2015-08-11 14:37:34 -07:00
Simon Michael
0d6f47282b doc: readme: add bountysource, license badges
(and a few more commented out)
2015-08-11 14:31:57 -07:00
Simon Michael
69818f0ca5 doc: manual: typo, clarifications 2015-08-09 21:09:50 -07:00
Simon Michael
a47ba50e8a doc: manual: clarify transaction vs market prices 2015-08-09 21:02:36 -07:00
Simon Michael
2dc9926fd4 doc: manual: document balance -V/--value 2015-08-09 16:45:43 -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
040d00e8fb also canonicalise historical price amounts
So that when we convert amounts to market value, the result will have
the canonical style of the target commodity.
2015-08-09 15:12:16 -07:00
Simon Michael
bf4c9221be doc: download: don't mention hledger-web on fedora 2015-08-05 06:52:32 -07:00
Simon Michael
ee81005796 doc: update fedora links/download info 2015-08-02 16:58:34 -07:00
Simon Michael
9f2cce6928 docs: manual: clarify real: 2015-08-02 16:58:08 -07:00
Simon Michael
72f080bc16 docs: manual: mention stack, cleanups 2015-07-28 17:30:50 -07:00
Simon Michael
dee282d8cf docs: download: more cleanups 2015-07-28 17:30:17 -07:00
Simon Michael
0a0ef2c213 site: add travis badge to front page and dev guide 2015-07-28 17:29:06 -07:00
Simon Michael
b7ab5112a3 tools: travis: consistent layout 2015-07-28 17:04:47 -07:00
Simon Michael
1cdc8a43a3 tools: travis: don't join/leave channel 2015-07-28 16:48:19 -07:00
Simon Michael
1950192586 tools: travis: is --no-terminal needed ? 2015-07-28 16:37:07 -07:00
Simon Michael
a6f7d1ef36 tools: travis: cleanups, simplify irc template 2015-07-28 16:34:20 -07:00