Commit Graph

24 Commits

Author SHA1 Message Date
Simon Michael
1ec1f7c4ea more file reading cleanup, try each known format in turn
Currently this is just the journal and timelog file formats.  This is more
scalable, but when things go wrong there is no longer just a single parse
error. For now we'll just show the first error, the one from the journal
file parser.
2010-05-31 01:15:18 +00:00
Simon Michael
a848a835a2 clean up and combine I/O and parsing under Hledger.Read.*
This facilitates adding readers for new data formats. Timelog parsing is temporarily broken.
2010-05-30 19:11:58 +00:00
Simon Michael
f168124501 parsing: allow - before commodity symbol as well (also fixes a convert bug) 2010-05-26 23:44:08 +00:00
Simon Michael
b97d2690de parsing: more robust double-quoted commodities - anything but a space or newline or double quote 2010-05-27 01:31:50 +00:00
Simon Michael
3305141206 parsing: allow spaces in double-quoted commodity symbols 2010-05-27 00:56:35 +00:00
Simon Michael
856f1f965a docs: hledger-lib module haddock updates 2010-05-27 03:58:47 +00:00
Simon Michael
a048705542 doc: comment 2010-04-14 16:19:01 +00:00
Simon Michael
331ed6b407 refactor: cleanup 2010-04-14 21:37:03 +00:00
Simon Michael
b19b02962a parsing: date parsing overhaul, don't exit on bad dates
- get rid of undefined parse errors due to guard
- don't call error from date parsers; let add re-prompt on bad dates
- years now must always have at least four digits
- clearer date parse errors
2010-04-14 21:49:34 +00:00
Simon Michael
f46cf82bed parsing: simpler high-level parse error message 2010-04-15 16:14:50 +00:00
Simon Michael
bba4a32339 print: negative account patterns now exclude transactions containing any posting to a matched account 2010-04-15 23:08:27 +00:00
Simon Michael
65cf381dbc parsing: timelog entries now generate balanced transactions, using virtual postings 2010-05-23 18:54:14 +00:00
Simon Michael
be30aac3f5 fix an occasional stack overflow error due to infinite recursion in Posting/Transaction equality tests
This was happening with balance command on certain timelog entries, since 0.8.
Now, when testing two postings for equality, their parent transaction's identity is ignored.
2010-05-22 00:45:35 +00:00
Simon Michael
91b7736a8b include file name in a journal's string representation 2010-05-23 22:15:08 +00:00
Simon Michael
a8d86fb5e5 web: fix loss of file path when reloading the journal 2010-05-23 22:24:30 +00:00
Simon Michael
bf5ee88a30 refactor: clarify the roles of Journal (primary data) and Ledger (derived report) 2010-05-23 17:41:25 +00:00
Simon Michael
70576e87d1 refactor: move post-parse processing into parseJournal 2010-05-22 23:35:34 +00:00
Simon Michael
10c0a9a958 refactor: take an axe to canonicaliseAmounts 2010-05-22 20:23:36 +00:00
Simon Michael
a430badb85 refactor: journalCloseTimeLogEntries 2010-05-22 19:00:20 +00:00
Simon Michael
11d354d426 refactor: renames and cleanups 2010-05-22 22:05:12 +00:00
Simon Michael
a3e5e7ce93 refactor: more ledger cleanup 2010-05-22 19:01:11 +00:00
Simon Michael
5982460782 refactor: clarify ledger construction a bit 2010-05-22 16:14:30 +00:00
Simon Michael
557746da5e remove redundant imports revealed by ghc 6.12 2010-05-22 15:33:51 +00:00
Simon Michael
7d4593cee9 move Ledger.* to Hledger.Data.* 2010-05-19 23:08:53 +00:00