Commit Graph

690 Commits

Author SHA1 Message Date
Simon Michael
470cae55ca show clockin/out times in timelog entries, detect clockout < clockin 2008-12-11 01:35:07 +00:00
Simon Michael
614e6e6932 count timelog sessions on the day they end, like ledger, for now 2008-12-05 01:16:42 +00:00
tim
4bc97d237a Added support for reading historical prices from files 2008-12-16 10:54:20 +00:00
nick
5e0313e447 Added timelog entries to ledger and added useful utilities 2008-12-08 01:48:03 +00:00
Simon Michael
b51740e9bb optimise canonicaliseAmounts
First optimisation in a while. hledger -s bal on my ledger took 2s, and profiling showed:

	total time  =        0.66 secs   (33 ticks @ 20 ms)
	total alloc = 3,631,667,848 bytes  (excludes profiling overheads)

     canonicaliseAmounts                             1   0.0    0.8      69.7       92.4
      rawLedgerCommoditiesWithSymbol              3928  27.3   23.1      69.7       91.6
       rawLedgerCommodities                          0  18.2   18.7      42.4       68.5
        amounts                                7712628   3.0    0.0       3.0        0.0
        rawLedgerAmounts                             0   0.0    9.3      21.2       49.9
         rawLedgerTransactions                       0   9.1   19.5      21.2       40.5
          flattenEntry                         3408636  12.1   21.0      12.1       21.0

Now it takes 1/2s and the profile is healthier:

	total time  =        0.14 secs   (7 ticks @ 20 ms)
	total alloc = 275,520,536 bytes  (excludes profiling overheads)

     canonicaliseAmounts                             1   0.0    0.4       0.0        0.5
      amounts                                     1964   0.0    0.0       0.0        0.0
      rawLedgerTransactions                          0   0.0    0.1       0.0        0.1
       flattenEntry                                868   0.0    0.1       0.0        0.1
2008-12-05 02:09:19 +00:00
nick
0be862f760 Fixed TimeLog handling and certain blank lines 2008-12-08 03:45:35 +00:00
Simon Michael
958c4eb891 bump version to 0.3 2009-01-17 17:33:47 +00:00
Simon Michael
088e28d02f add UICommand to other-modules 2009-01-17 17:34:37 +00:00
Simon Michael
a8ede0132a add a failing test for zero-balance root account eliding 2009-01-17 17:59:35 +00:00
Simon Michael
8ff1abfb2a failing test for eliding !account accounts 2008-12-10 18:37:25 +00:00
Simon Michael
3343e21ab1 work towards a fix for zero-balance root account eliding 2009-01-17 18:07:20 +00:00
Simon Michael
59d110e0a8 fix reading from stdin, except for ui command 2009-01-17 19:23:21 +00:00
Simon Michael
a51596899f a cached ledger now includes the full ledger text, also.
This reads the file twice, since I couldn't figure out how to do it just
once with the new error monad.. fixes welcome.
2008-12-10 07:29:08 +00:00
nick
ee4a2a1c1e New ledger parser with file inclusion 2008-12-08 01:49:31 +00:00
Simon Michael
157f47c592 run all tests from internal data, not the sample.ledger file 2008-12-05 08:33:15 +00:00
Simon Michael
866398ecb8 more varied dates in sample ledger 2008-11-26 21:11:10 +00:00
Simon Michael
1c969b5744 clean up ledger loading utilities 2008-12-05 08:51:14 +00:00
Simon Michael
e34b8b5662 test 2008-12-05 09:28:29 +00:00
nick
e68a72b072 Handle ledger parse errors 2008-12-09 21:00:46 +00:00
Simon Michael
ae9636e55c refactor ledger preparation 2008-11-29 20:00:21 +00:00
Simon Michael
b9bee776b5 fix register totals when using --display 2009-01-17 20:00:45 +00:00
Simon Michael
ebdf67a5ab smart dates: also accept yyyymmdd with no separators 2009-01-17 20:07:24 +00:00
nick
91f3b7faac Abstract over all GenParser state types 2008-12-08 01:11:07 +00:00
Simon Michael
5a0156d5ee smart dates: work towards next/last monthname/weekdayname 2009-01-17 20:21:44 +00:00
Simon Michael
77098fec7e lowercase/uppercase 2008-11-27 06:32:31 +00:00
Simon Michael
0c4cf88578 perl-like strip 2008-11-26 21:11:44 +00:00
Simon Michael
c0b1d8694b notes 2009-01-17 21:03:25 +00:00
Simon Michael
4d0efe0c71 notes 2008-12-10 18:43:19 +00:00
Simon Michael
b6b8d0e9b7 notes 2008-12-07 18:57:04 +00:00
Simon Michael
f69716ddf9 fix reporting of unbalanced entries 2008-12-05 10:04:59 +00:00
Simon Michael
0f91583230 notes 2008-12-05 10:02:24 +00:00
Simon Michael
5e9f9e530a better register summarising with --depth and -E support, datespan splitting bugfix 2008-12-04 19:29:29 +00:00
Simon Michael
5cdd124749 notes cleanup 2008-12-04 19:30:21 +00:00
Simon Michael
8dc96a1da7 note some issues 2008-12-04 19:30:30 +00:00
Simon Michael
e2235abcee move that ui feature note 2009-01-17 21:12:18 +00:00
Simon Michael
e2068f2b5f more benchmark data 2009-01-17 21:21:09 +00:00
Simon Michael
9fbb8128b5 simplify news layout 2009-01-17 22:07:07 +00:00
Simon Michael
34220c97d6 news updates 2009-01-17 21:03:49 +00:00
Simon Michael
c381dd73e7 use latest all-compatible vty 2009-01-17 23:11:15 +00:00
Simon Michael
df5e308971 simplify readme layout 2009-01-17 22:09:04 +00:00
Simon Michael
3497ea6144 allow ghc-6.10 users to use latest vty, note vty 3.1.2 requirement for ghc <6.10 2009-01-17 17:48:17 +00:00
Simon Michael
3699343318 fix the regexpr version fix, we really do require 0.5.1 2008-12-16 18:35:46 +00:00
Simon Michael
acbb669bcc fix a collision with latest regexpr package 2008-12-11 20:07:06 +00:00
Simon Michael
798841a87e pin vty to 3.1.2 which builds with ghc 6.8, hopefully 6.10 too 2008-12-16 18:36:27 +00:00
tim
2d2aeae130 Added mtl and bytestring as dependencies in the cabal file 2008-12-10 19:35:18 +00:00
Simon Michael
dd040f9ca2 a simple interactive text ui
Lets you navigate around the balance, register, print reports and the raw
ledger, and drill down on a single account. Adds a dependency on vty.
2008-12-08 17:27:16 +00:00
Simon Michael
b4bdc926dd readme updates 2009-01-17 21:03:34 +00:00
Simon Michael
b1f4bd8ec3 say more about requirements 2008-12-10 09:45:00 +00:00
Simon Michael
b8f8dad7d6 docs 2008-12-05 10:02:58 +00:00
Simon Michael
fae380e914 help tweak 2008-11-27 07:43:10 +00:00