Commit Graph

1224 Commits

Author SHA1 Message Date
Simon Michael
e4cd127fc4 print: always show zero amounts as 0, hiding any commodity/decimal places/price, like ledger 2010-03-09 04:12:38 +00:00
Simon Michael
57c537de41 parsing: N, tag, end tag are now ignored; ledger sample.dat parses 2010-03-12 22:52:57 +00:00
Simon Michael
6977a0eecb parsing: allow numbers in commodities if double-quoted, like ledger 2010-04-05 20:55:57 +00:00
Simon Michael
f92270dfa8 refactor: move parse tests 2010-03-11 17:16:03 +00:00
Simon Michael
903bf23afd refactor 2010-03-09 04:03:51 +00:00
Simon Michael
eedf0b211a refactor 2010-03-09 03:52:17 +00:00
Simon Michael
993972549a refactor 2010-03-09 01:43:25 +00:00
Simon Michael
08607362b0 refactor assertParse/assertParseEqual 2010-03-10 19:48:46 +00:00
Simon Michael
d4965b87ff web: -fweb now builds with simpleserver; the alternate -fwebhappstack builds with happstack
hack-handler-simpleserver is presumably quite a bit easier to install than
happstack, and so far fits hledger's needs just as well, so it is now the
default when installing with -fweb. To build with happstack, use
-fwebhappstack instead.  hledger --version shows which webserver was
built. Also webserver thread management has been simplified so should be
more consistent across platforms.
2010-02-16 03:39:19 +00:00
Simon Michael
f937f59276 assertParse now generates test failures 2010-03-10 19:17:32 +00:00
Simon Michael
b2c8933af4 parsing: show a better error for illegal month/day numbers in dates 2010-04-06 02:31:47 +00:00
Simon Michael
cd8dffc485 docs: notes 2010-04-10 00:21:35 +00:00
Simon Michael
5f82a9cd6b docs: developer notes, roadmap notes 2010-03-19 20:01:26 +00:00
Simon Michael
599398baa3 register: fix bad layout with years < 1000 2010-02-16 21:59:53 +00:00
Simon Michael
5722c97a8a docs: release notes 2010-04-10 00:24:20 +00:00
Simon Michael
fad392e7e9 hledger-lib: docs update 2010-04-10 00:42:16 +00:00
Simon Michael
ca136dca7f bump version 2010-04-10 00:51:06 +00:00
Simon Michael
1c46417bed split off hledger-lib package, containing core types & utils 2010-03-22 01:44:59 +00:00
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