Simon Michael
1bc7a22d57
make main function importable, for benchmarking. There must be a better way..
2010-02-13 21:43:08 +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
Roman Cheplyaka
e96350c3f1
New command 'chart': generate balances pie chart
2009-09-26 22:53:54 +00:00
marko.kocic
cca81d199f
Hlint: Error: Use better pragmas
2009-09-22 12:22:44 +00:00
Simon Michael
8a98b83286
web: rename -fhapps flag to -fweb
2009-11-28 15:37:56 +00:00
Simon Michael
472b65c5ab
whitespace
2009-07-31 17:02:47 +00:00
marko.kocic
8fdd28d446
Hlint: Error: Redundant $
2009-09-22 11:55:11 +00:00
Simon Michael
cb8ea69dfc
fix warnings all over - hledger is now -W-clean
2009-06-05 09:44:20 +00:00
Simon Michael
df3eb6a2cb
hledger.hs exports cleanup
2009-06-02 19:01:21 +00:00
Simon Michael
c936e90a54
add a --binary-filename option and "make pushbinary" for easy publishing
...
Also note that we don't yet follow cabal package versioning policy.
2009-06-05 02:07:38 +00:00
Simon Michael
d35792bf3f
move commands to their own subpackage
2009-06-02 18:29:01 +00:00
Simon Michael
4517cab686
new "stats" command, like my old ledgerstats
2009-05-29 10:05:09 +00:00
Simon Michael
4c9f0e5d9e
more haddock cleanups
2009-04-04 22:38:36 +00:00
Simon Michael
fddeb23397
update haddock ghci examples
2009-04-04 09:24:49 +00:00
Simon Michael
d645e9f90b
add command now creates the ledger file if missing
2009-05-16 20:45:05 +00:00
Sergey Astanin
86fab58e6a
Allow UTF8 in ledgers (account names, descriptions).
...
This patch fixes broken layout of some commands when there is Unicode
text in the ledger file.
I substituted System.IO functions with System.IO.UTF8. Now all strings
are Unicode internally, and take's and length's work correctly.
In particular, add, balance, hist, print and register commands seem
to work correctly; ui is still broken for me, I didn't try web.
I decode command line arguments from UTF8 forcefully, to permit
searches for accounts and descriptions with Unicode (otherwise, it
does not work).
The patch adds an additional dependency: utf8-string.
This patch does not include new test cases.
2009-05-14 20:44:06 +00:00
Simon Michael
393e7d98d4
convert command for transforming bank CSV exports to ledger format
2009-04-10 03:10:58 +00:00
Simon Michael
ae69a216ac
whitespace
2009-04-07 21:16:42 +00:00
Simon Michael
c5e7b12a59
add command, reads transactions interactively and adds them to the ledger
2009-04-08 05:30:26 +00:00
Simon Michael
dee37efc1c
histogram command, undocumented for now
2009-04-04 11:19:51 +00:00
Simon Michael
b60f9187c0
refactor, moving generic io functions into Ledger.IO
2009-04-04 08:50:36 +00:00
Simon Michael
3c1d3a6d7f
simplify: drop the ansi ui, and enable the vty ui by default
...
If what I'm hearing is correct, cabal on windows will turn off the vty
flag automatically. The alternative ansi ui is not worth the hassle.
2009-04-03 04:17:48 +00:00
Simon Michael
f1e193aef1
polish
2009-04-03 05:58:14 +00:00
Simon Michael
f5671878fc
fix misformatted urls in haddock
2009-04-02 21:02:27 +00:00
Simon Michael
bed6f0ce01
comments
2009-02-27 03:09:16 +00:00
Simon Michael
2b803b4558
drop the ansi command, make the ui command use ansi if vty is not available
2009-04-02 00:24:38 +00:00
Simon Michael
d7d08354ae
cleanups
2009-01-25 12:52:28 +00:00
Simon Michael
ae5a9439d0
count time elapsed in open timelog entries, ignore time zone
...
Any open sessions in a timelog will be considered clocked out as of the
current time, and included in calculations. Also, contrary to the earlier
patch we now ignore timezone everywhere and deal only with local times.
This might need revisiting eg to track time while crossing timezones.
2009-01-25 07:06:59 +00:00
Simon Michael
44cbed59cb
use longer but standard and clearer getCurrentTime/Day
2009-01-24 19:48:37 +00:00
Simon Michael
b0178b88cc
make prepareLedger use current time, not just date
2009-01-24 18:48:28 +00:00
Simon Michael
7f18b50e50
rename the happs command to "web"
2009-01-25 11:48:49 +00:00
Simon Michael
c0885f7c76
another iteration of the version number system; simpler and more efficient
...
The release version is defined in VERSION, make or make release do the rest.
2009-02-27 02:55:54 +00:00
Simon Michael
ea0c32641d
minimal happs-based web ui, enabled with -f happs
2009-01-20 04:04:40 +00:00
Simon Michael
e361b789a0
simple ansi-based ui that should work on windows, enabled with -f ansi
2009-01-20 04:02:21 +00:00
Simon Michael
15239ecf96
make an explicit configure flag for the vty ui
2009-01-20 03:48:05 +00:00
Simon Michael
67a764dce7
need to omit the vty dependency and ui command on windows
2009-01-18 19:02:08 +00:00
Simon Michael
8dcd53c9ba
clean up version string and include configure flags
2009-01-20 05:57:25 +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
Simon Michael
1c969b5744
clean up ledger loading utilities
2008-12-05 08:51:14 +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
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
57c31f5ab0
support basic --period expressions, containing a single smart date
2008-11-27 06:29:29 +00:00
Simon Michael
d25995c1c8
refactor with DateSpan
2008-11-27 04:31:01 +00:00
Simon Michael
6c88197c6a
do IO date parsing up front, and support (english) month names
2008-11-26 04:04:05 +00:00
Simon Michael
1c60514973
tighten up date parsing, make it io-friendly and parse Y, M/D, D
2008-11-25 23:52:42 +00:00
Simon Michael
dc007e69a5
--options-anywhere to use ^ for negative patterns and permit options anywhere in command-line
2008-11-25 19:29:33 +00:00
Simon Michael
565feb594e
add a --verbose/-v flag, use it to show more test-running detail
2008-11-22 04:49:00 +00:00