Simon Michael
ea5a87815b
rename setAmountDisplayPrefs to canonicaliseAmounts
2008-11-08 22:02:38 +00:00
tim
514f015849
Implemented types for dates and datetimes
...
This patch replaces the strings used in the Entry, TimeLogEntry, and Transaction
records with real types. Rather than use the inbuild system date and time types
directly, two custom types have been implemented that wrap UTCTime: Date and
DateTime. A minimal API for these has been added.
2008-11-11 12:34:05 +00:00
Simon Michael
5c0ff1daa5
separate confusing "normalise" uses, begin to fix broken amount display prefs
2008-10-18 21:10:08 +00:00
Simon Michael
17ab6cb0ab
support --real/-R flag
2008-10-16 09:50:16 +00:00
Simon Michael
57603db7b9
support -C/--cleared flag to filter by entry status (not transaction status)
2008-10-16 09:04:44 +00:00
Simon Michael
2711474bc9
"hledger test" now accepts ledger-style name patterns, to run a subset of tests
...
Eg: hledger test amount, hledger test -'balance report'
2008-11-21 18:45:09 +00:00
Simon Michael
5fcab59414
support negative patterns and ledger's special balance report account matching rule
2008-10-15 17:04:47 +00:00
Simon Michael
782d05aa61
use the display settings of the first amount detected in each commodity
2008-10-15 00:34:02 +00:00
Simon Michael
4efdda25b4
replace Currency with a more flexible, ledger-style Commodity
2008-10-12 21:52:48 +00:00
Simon Michael
80ef214f79
nicer ghci/repl usage, update docs
2008-10-12 09:17:21 +00:00
Simon Michael
01cd388c24
remove dead code, simplify cacheLedger again
2008-10-12 07:46:54 +00:00
Simon Michael
a30154b401
pruneBoringBranches again, a test, and fix hiding of zero-balance leaf accounts
2008-10-10 11:55:12 +00:00
Simon Michael
220417ce48
top-level Utils module
2008-10-10 10:04:26 +00:00
Simon Michael
37e75d610e
more tests cleanup.. prepare for per-module tests, but consolidate in Tests where I think we will stay
2008-10-10 08:16:55 +00:00
Simon Michael
688f2447a5
move main module comment
2008-10-10 07:39:13 +00:00
Simon Michael
d1dfcafc39
move entry filter functions to RawLedger
2008-10-10 04:23:25 +00:00
Simon Michael
67c203f316
move commands to top-level modules, make Ledger pure (except for Parse)
2008-10-10 03:32:12 +00:00
Simon Michael
73c49ec060
reduce unnecessary imports
2008-10-10 02:19:53 +00:00
Simon Michael
cdc5a23192
clean up imports whitespace, minimise explicit intra-app import/export declarations for now
2008-10-10 01:53:39 +00:00
Simon Michael
2f59135953
simple --version option
2008-10-10 01:36:21 +00:00
Simon Michael
11342db662
simplify filtering, make cacheLedger store filtered data as well, make balance reports work a little better
2008-10-09 13:02:26 +00:00
Simon Michael
fa1b4bdfa2
rename parseError, parsePatternArgs, fix a bug
2008-10-08 18:02:34 +00:00
Simon Michael
59f0a2fabe
simplify parseLedgerAndDo
2008-10-08 17:48:11 +00:00
Simon Michael
b00dc34b4f
rename Flag to Opt, cleanup
2008-10-08 17:24:59 +00:00
Simon Michael
91802391a1
um.. refactor option handling, filtering, and support -b/-e date filtering options
2008-10-08 17:00:22 +00:00
Simon Michael
26b6130a9b
fix filter pattern handling, filtered non -s balance report showing full account names
2008-10-03 11:52:07 +00:00
Simon Michael
cf194e6b60
rename showLedgerAccounts to showLedgerAccountBalances
2008-10-03 07:47:36 +00:00
Simon Michael
e5834ffe2f
minor cleanups.. time to go
2008-10-03 03:38:33 +00:00
Simon Michael
c5b23c5724
better ghci helpers
2008-10-03 03:15:16 +00:00
Simon Michael
9a2dc41d30
move parseLedgerAndDo back to hledger main
2008-10-03 02:25:18 +00:00
Simon Michael
5531918b8c
update main description
2008-10-03 02:08:33 +00:00
Simon Michael
b19fe33476
replace Models with a top-level Ledger module
2008-10-03 01:14:16 +00:00
Simon Michael
c699b979f8
move the rest of the core code to the Ledger package
2008-10-03 00:40:06 +00:00
Simon Michael
82e4e14e8f
move Types to Ledger/
2008-10-03 00:12:59 +00:00
Simon Michael
627f78a730
first step towards a library, move Utils to Ledger.Utils
2008-10-03 00:05:16 +00:00
Simon Michael
e9d9660c39
doc wording
2008-10-03 00:00:55 +00:00
Simon Michael
99358f207b
rename LedgerTransaction to RawTransaction
2008-10-02 23:55:01 +00:00
Simon Michael
66edd66cc3
move ghci examples to module description
2008-10-02 23:33:02 +00:00
Simon Michael
143b0434bb
rewrite code organization doc
2008-10-02 23:32:53 +00:00
Simon Michael
2ee9a341be
move printentries/printregister to Ledger
2008-10-02 23:00:11 +00:00
Simon Michael
8045799664
fix haddock breakage
2008-10-02 22:35:24 +00:00
Simon Michael
f4b4fc98fe
rename LedgerFile to RawLedger
2008-10-02 22:17:04 +00:00
Simon Michael
5cb1ea228f
some import cleanups
2008-10-02 21:47:11 +00:00
Simon Michael
6f83e902a8
push some more stuff down into Parse, cleanups
2008-10-01 18:53:43 +00:00
Simon Michael
8b117e1581
more ledger-handling-functions cleanup
2008-10-01 12:48:52 +00:00
Simon Michael
9ea32d3f13
Main cleanup
2008-10-01 12:29:51 +00:00
Simon Michael
bf136fae5c
drop the FilterPatterns type
2008-10-01 11:43:18 +00:00
Simon Michael
a4039de739
wording
2008-10-01 11:14:29 +00:00
Simon Michael
8c6d93701b
try to simplify FilterPatterns a bit
2008-10-01 11:08:30 +00:00
Simon Michael
5a1452c5db
move around and clean up haddock comments
2008-10-01 09:33:05 +00:00
Simon Michael
bb7614ed8e
sync hledger.hs with README & cabal description
2008-10-01 08:44:23 +00:00
Simon Michael
a74fb9692c
clean up hledger.hs description
2008-10-01 07:04:47 +00:00
Simon Michael
efcbd29dc8
preliminary haddockification
2008-10-01 00:29:58 +00:00
Simon Michael
7051721c60
interaction helpers
2008-09-28 03:43:59 +00:00
Simon Michael
d795c0bac8
update ghci examples
2008-06-28 04:44:56 +00:00
Simon Michael
e16fc9aeed
some fix or other
2008-05-26 20:43:11 +00:00
Simon Michael
d52b365fa0
combine patterns into single regexps, fix a bug with print & patterns
2007-07-11 06:58:47 +00:00
Simon Michael
ce0d4ec85a
clean up account/description pattern handling
2007-07-11 05:46:20 +00:00
Simon Michael
2b608a6c9c
remove obsolete code, cleanups
2007-07-09 18:54:41 +00:00
Simon Michael
11c96dd042
make print & balance support both account & description patterns
2007-07-09 17:38:01 +00:00
Simon Michael
ec1b5b9bce
balance: combine boring account names properly when matching account patterns
2007-07-07 18:26:28 +00:00
Simon Michael
a1b060f4cf
renamed types: RawLedger, Entry, Transaction, EntryTransaction -> LedgerFile, LedgerEntry, LedgerTransaction, Transaction
2007-07-04 09:51:37 +00:00
Simon Michael
42ba85c4e1
print command
2007-07-04 09:28:07 +00:00
Simon Michael
eccc932258
selftest -> test
2007-07-04 03:41:15 +00:00
Simon Michael
f0ec7b08a3
track amount precision, and use the highest precision found for display; parsing fixes
2007-07-04 01:38:56 +00:00
Simon Michael
b2b9aba791
sort register by date
2007-07-03 19:06:47 +00:00
Simon Michael
0445086286
tests cleanup
2007-07-03 18:20:45 +00:00
Simon Michael
255e061e6f
fix non-display of single-child accounts when balance report depth is restricted, test support
2007-07-03 17:25:16 +00:00
Simon Michael
d760acc85e
speed, cleanup
2007-07-03 08:46:39 +00:00
Simon Michael
b06fe57c00
more speed
2007-07-03 06:16:15 +00:00
Simon Michael
78a506e85a
more optimisation
2007-07-03 05:43:00 +00:00
Simon Michael
362d3831ea
rename ledger functions
2007-07-02 19:39:34 +00:00
Simon Michael
bd84e95f5e
rename Ledger -> RawLedger, CachedLedger -> Ledger
2007-07-02 19:15:39 +00:00
Simon Michael
df55743697
CachedLedger
2007-07-02 18:57:37 +00:00
Simon Michael
2ddeb4841c
move types to bottom
2007-07-02 16:43:14 +00:00
Simon Michael
b41e13d23a
BasicTypes -> Types
2007-07-02 14:54:36 +00:00
Simon Michael
6bc4f5f72d
misc support
2007-05-02 07:37:08 +00:00
Simon Michael
f89cd1867d
cleanups
2007-05-01 07:15:53 +00:00
Simon Michael
f5a41220ea
--help
2007-05-01 05:55:35 +00:00
Simon Michael
2b696b8f0d
define/run tests anywhere
2007-03-12 09:38:02 +00:00
Simon Michael
abc3ed32cf
marginal cleanup: parse acctpats, descpats for all commands
2007-03-12 08:17:51 +00:00
Simon Michael
12a9a03f1a
cleanup
2007-03-12 07:58:44 +00:00
Simon Michael
510d39095c
big overhaul of options, support -f-, rudimentary timelog file handling
2007-03-12 07:40:33 +00:00
Simon Michael
69d67820eb
comment
2007-03-11 00:56:03 +00:00
Simon Michael
7d2a868640
fix, show only top level by default
2007-03-10 23:05:30 +00:00
Simon Michael
1e1c819f4e
more tree support, properly filter balance report by (one) account regexp
2007-03-10 21:24:57 +00:00
Simon Michael
8a5ed9c8b9
cleanup
2007-03-10 00:06:48 +00:00
Simon Michael
3de3e861ee
simple currency handling
2007-02-20 00:21:57 +00:00
Simon Michael
c370d34de6
elide boring accounts in balance report, like ledger
2007-02-19 21:20:06 +00:00
Simon Michael
1524dffbe2
rename old Account module to AccountName, extract new Account module from Models
2007-02-18 18:12:02 +00:00
Simon Michael
5475a3868c
fix -f option
2007-02-16 12:24:13 +00:00
Simon Michael
1322bcb4a0
refactor, fix balance report
2007-02-16 11:51:30 +00:00
Simon Michael
ba40fbf733
reorg, split types into separate modules
2007-02-16 09:00:17 +00:00
Simon Michael
7b32caa0aa
balance report, refactoring .. not finished but feeling paranoid about systems today\!
2007-02-15 02:08:18 +00:00
Simon Michael
edbedab32c
ledger-style account and description regexp matching
2007-02-13 03:48:16 +00:00
Simon Michael
7e38481f8b
tweak data model, cleanups, show entry details only once per entry
2007-02-13 01:03:12 +00:00
Simon Michael
960187f531
filter transactions by account substring
2007-02-12 00:41:50 +00:00
Simon Michael
0b5cb44b43
cleanup
2007-02-10 23:42:22 +00:00
Simon Michael
6bf13fb262
much refactoring, get quickcheck working, beginnings of account matching
2007-02-10 23:24:33 +00:00
Simon Michael
080d567f15
Types -> Models
2007-02-10 23:10:04 +00:00