Commit Graph

2595 Commits

Author SHA1 Message Date
Simon Michael
45d4a38cc7 refactor: setAmountPrecision -> withPrecision 2012-11-19 23:24:04 +00:00
Simon Michael
9cd228329c hledger-lib doesn't need shakespeare-text 2012-11-21 17:41:49 +00:00
Simon Michael
93978fcf81 tools: web dev build fixes 2012-11-23 20:49:17 +00:00
Simon Michael
300ef7c536 tools: web dev build uses RecordWildCards 2012-11-20 02:25:14 +00:00
Simon Michael
0f664057d7 web: fix this dev build warning without breaking prod 2012-11-23 20:49:53 +00:00
Simon Michael
6cf883bcc3 web: fix build error 2012-11-21 17:39:31 +00:00
Simon Michael
ad88df99fa refactor: try to organise handler support code better 2012-11-20 02:51:38 +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
81354fb492 web: split handlers into multiple files 2012-11-20 02:23:23 +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
5a534f1c73 web: fix after refactor 2012-11-19 21:47:47 +00:00
Simon Michael
8c06553e3b refactor: make amount price a non-maybe, reducing noise 2012-11-19 22:39:08 +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
ae74983436 web: build-depends cleanup 2012-11-24 15:35:09 +00:00
Simon Michael
3d8dbb9d35 web: depend on same yesod version in lib and exe 2012-11-21 17:41:11 +00:00
Simon Michael
7d92fa6a7f tools: fix manual version number setting 2012-11-24 15:59:42 +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
4cbb2963e1 docs: mention the refactorings in 0.19.3 2012-11-24 16:04:35 +00:00
Simon Michael
a2179ac673 release notes 2012-11-24 15:39:51 +00:00
Simon Michael
7c4ebacb58 docs: news, shorten HCAR in contents 2012-11-17 04:15:19 +00:00
Simon Michael
0e8eb92c23 web: bump hledger dependency, release notes 2012-11-17 03:49:29 +00:00
Simon Michael
706b25c32e notes 2012-11-11 22:10:52 +00:00
Simon Michael
cbc7661703 87: fix an arithmetic and transaction balancing bug with multiple total-priced amounts 2012-11-12 16:31:43 +00:00
Simon Michael
d2aa8ca6cb note future debug tools 2012-11-15 17:46:48 +00:00
Simon Michael
8ad7e447a2 bump manual's version to correct number 2012-11-15 17:47:16 +00:00
Simon Michael
3d33673b25 web: obey command-line query options at startup again 2012-11-15 17:53:10 +00:00
Simon Michael
2ed17f29e6 web: fix ghc/cabal warnings 2012-11-16 17:08:27 +00:00
Simon Michael
a39b8f652a web: add missing files to cabal 2012-11-16 17:08:54 +00:00
Simon Michael
42185474c0 web: tweak "embedded files" message 2012-11-17 01:23:05 +00:00
Simon Michael
695ff9a49e 91: don't require a ./config/ directory at hledger-web startup
As before, hledger-web writes a yesod session file in the current
directory at startup. It's now called ./.hledger-web_client_session_key.aes
2012-11-17 01:25:33 +00:00
Simon Michael
2addc934fc tools: add more web source files 2012-11-17 01:26:08 +00:00
Simon Michael
92ea44dcb8 tools: update web building rules 2012-11-16 18:49:00 +00:00
Simon Michael
1c1058be4e 70: ignore ledger's fixed lot price declarations 2012-11-17 02:40:27 +00:00
Simon Michael
28baf926f7 parsing: ignore ledger-style balance assertions ("= BAL" after a posting's amount) 2012-11-02 16:50:36 +00:00
Simon Michael
e4e4681649 docs: note parsing of balance assertions 2012-11-02 17:36:17 +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
fa1e7dfb97 authorspellings update 2012-09-28 17:29:28 +00:00
Simon Michael
2a8aaa55c9 manual updates 2012-09-28 17:29:49 +00:00
Simon Michael
c1ab41f0a9 hledger, hledger-lib: support GHC 7.6 2012-10-08 16:52:07 +00:00
Simon Michael
f441bbd946 web: add missing CPP pragma 2012-10-13 14:57:42 +00:00
Simon Michael
af03481385 tools: more sample journals 2012-10-13 19:47:39 +00:00
Simon Michael
5a7e94a08a docs: download page updates 2012-10-16 19:48:14 +00:00
Simon Michael
e6de6d0cd5 downloads: update copy, add new mac builds, drop hledger-chart 2012-09-28 17:34:09 +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
cb2a4e543f tools: standard/aligned bench test commands 2012-10-21 21:35:14 +00:00
Simon Michael
51a9f2a948 bump version 2012-10-21 20:20:35 +00:00