Commit Graph

1206 Commits

Author SHA1 Message Date
Simon Michael
1bc7a22d57 make main function importable, for benchmarking. There must be a better way.. 2010-02-13 21:43:08 +00:00
gwern0
357f56d0f4 de-haskell98 2010-03-09 01:51:21 +00:00
Simon Michael
a50d3e2b71 refactor, allow in-module unit tests
Until now, all unit tests were defined in Tests.hs. Pro: simple, makes
code/test line counting easy. Con: tests are far from code, Tests.hs turns
into a big wall of test code. Now, unit tests can also be defined in modules.

To avoid name clashes and template haskell complexity, a dumb manual
naming scheme is used: any module may export a hunit Test(List) named
tests_ModuleName. These are manually aggregated and re-exported when
appropriate, eg in Commands.All and finally in Tests.hs.
2010-03-08 21:47:36 +00:00
Simon Michael
3969dff3fc parsing: @ was being treated as a currency symbol; a few more tests 2010-03-06 21:47:10 +00:00
Simon Michael
306013e21e refactor 2010-03-07 15:32:48 +00:00
Simon Michael
abcc831b5a register: fix a Prelude.head error with reporting interval, --empty, and --depth 2010-02-16 21:45:40 +00:00
ob
8937ed457d GHC 6.12.1 has UTF8 support on board. Using System.IO.UTF8 can cause problems.
Therefore use System.IO.UTF8 only on previous versions.
Testet with GHC 6.10.4 and 6.12.1
2010-02-13 20:00:34 +00:00
Simon Michael
bd1c8444f4 docs: note two spaces before amounts 2009-12-12 08:03:56 +00:00
Simon Michael
386b7cfe12 .authorspellings file for darcs show authors 2009-12-12 08:33:54 +00:00
Simon Michael
674da34db0 docs: more release note fixes 2009-12-12 08:42:03 +00:00
Simon Michael
6c74d50c1f docs: tweak 2009-12-12 08:55:14 +00:00
Simon Michael
d6ef9f3436 tools: update hledgermac rule 2009-12-12 15:58:52 +00:00
Simon Michael
fb8fa65f03 docs: tweaks 2009-12-12 20:46:55 +00:00
Simon Michael
7cee8a2489 docs: file format wording 2009-12-12 20:41:07 +00:00
Simon Michael
5018fd459d docs: update Amount haddock 2009-12-12 21:10:39 +00:00
Simon Michael
d3083ef316 docs: Date haddock 2009-12-12 22:19:57 +00:00
Simon Michael
b0006ce83f fix some non-utf8-aware file reading (#15) 2009-12-12 22:20:44 +00:00
Simon Michael
736897998f web: use today as default when adding with a blank date 2009-12-12 22:21:51 +00:00
Simon Michael
4acc2c55ea web: first cut at preserving encoding during add, assumes utf-8 (#15) 2009-12-12 22:08:28 +00:00
Simon Michael
0716659430 docs: reorder windows binary instructions 2009-12-18 04:12:21 +00:00
Simon Michael
ef202ada2e docs: link from binaries to home page 2009-12-18 04:21:54 +00:00
Simon Michael
7391b32f1d docs: more binary cleanups 2009-12-12 19:45:47 +00:00
Simon Michael
b2ae82d6f1 docs: update contact link 2009-12-12 19:12:57 +00:00
Simon Michael
5bd7aee0cc docs: note stale binaries 2009-12-12 08:55:33 +00:00
Simon Michael
73ecaec6c9 add: ctrl-d doesn't work on windows, suggest ctrl-c instead 2009-12-18 04:32:28 +00:00
Simon Michael
5378fc9798 comment 2009-12-16 17:59:13 +00:00
Simon Michael
783c8de632 tools: fix haddock building 2009-12-19 01:19:01 +00:00
Simon Michael
50200e38ed more cleanup, move journal text into Journal 2009-12-21 05:43:10 +00:00
Simon Michael
4d5d9214b1 web: re-enable account/period fields, they seem to be fixed, along with file re-reading (#16) 2009-12-21 05:53:08 +00:00
Simon Michael
2edb9e4a79 register: make reporting intervals honour a display expression (#18) 2009-12-21 06:03:34 +00:00
Simon Michael
86f14b10a9 doc: slight clarification of Transaction 2010-02-02 21:34:26 +00:00
Simon Michael
c08bccb158 parsing: use actual (ie, first) date's year as a default for the effective (ie, second) date 2010-02-03 21:19:01 +00:00
Simon Michael
86020e8f4a web: remove debug print 2010-02-03 21:20:32 +00:00
Simon Michael
a8045c7c32 tools: do specify an upper bound on base, hackage requires it 2010-02-03 21:54:10 +00:00
Simon Michael
f2737bb7da tools: drop upper bounds from package dependencies, they seem a hindrance 2010-02-03 21:13:00 +00:00
Simon Michael
4b6d478c68 bump version number 2010-02-03 21:54:32 +00:00
Simon Michael
533b9d65b6 tools: version cleanup 2009-12-12 20:40:54 +00:00
Simon Michael
3a8906b956 resolve conflicts (Make previous entered day a default one) 2010-02-03 22:53:55 +00:00
Simon Michael
8274de5e92 resolve conflicts (Add: --no-new-accounts: don't allow to create new accounts) 2010-02-03 22:49:02 +00:00
Roman Cheplyaka
acecc28ce5 Make previous entered day a default one 2010-02-03 01:56:36 +00:00
Roman Cheplyaka
b2e89a8c13 Add: --no-new-accounts: don't allow to create new accounts 2010-02-03 01:23:14 +00:00
Simon Michael
8310eaa6ff resolve conflicts/explain (Add: filter relevant transactions by account)
Previously, we supported "hledger add [DESCRIPTION]". A DESCRIPTION just
pre-filled the description field and bypassed that prompt, after which
existing transactions with similar descriptions were offered as
defaults/reminders.

Now, we support "hledger add [ACCOUNTPATTERN]" instead. After the
description prompt, existing transactions with similar descriptions *and*
which match ACCOUNTPATTERN are offered as defaults. This can be helpful eg
with a multi-person ledger, to match only your own transactions.
2010-02-04 15:57:19 +00:00
Roman Cheplyaka
20b243a3a3 Add: filter relevant transactions by account 2009-10-11 20:12:10 +00:00
Simon Michael
30dee8cc7d resolve conflicts (Add Ledger.Amount.convertMixedAmountTo function) 2010-02-04 16:40:30 +00:00
Roman Cheplyaka
5c23ebd01b Add Ledger.Amount.convertMixedAmountTo function 2009-09-26 22:52:30 +00:00
Simon Michael
34506f3518 relax upper bound on Chart lib 2010-02-04 18:28:44 +00:00
Simon Michael
3aba40c5b6 fix warnings 2010-02-04 18:32:54 +00:00
Simon Michael
b8c6f6fc5a tools: enable all optional code when running ghci 2010-02-04 19:23:34 +00:00
Simon Michael
357b27fb63 fix an unsafe ! in ledgerAccount; clarify that withLedgerDo does not cache the ledger 2010-02-04 20:55:12 +00:00
Roman Cheplyaka
d449a64814 Signed contributor agreement 2010-02-06 12:25:23 +00:00