Simon Michael
059825a9b2
optionsgeddon.. port to cmdargs and a fully modal cli
2011-08-15 22:50:09 +00:00
Simon Michael
e4c4405c62
refactor: simplify some imports
2011-07-17 23:05:56 +00:00
Simon Michael
5084280879
imports, api cleanup
2011-05-28 04:11:44 +00:00
Simon Michael
6a845eb5e4
i18n: always read and write UTF-8, ignoring current locale ( #34 )
...
Also remove a bunch of CPP conditions.
Uses the GHC-version-independent UTF-8 layer from pandoc.
2011-01-21 01:24:51 +00:00
Simon Michael
b4eca62334
switch default journal file name to ~/.hledger.journal, to avoid breaking mac filevault ( #41 )
2011-04-17 20:35:58 +00:00
Simon Michael
44709f1e16
handle a blank LEDGER_FILE or LEDGER value more gracefully (use the default file path)
2011-04-18 05:53:23 +00:00
Simon Michael
eefae63bb6
look at LEDGER_FILE for the journal path, otherwise LEDGER, like c++ ledger
2011-04-17 21:26:46 +00:00
Simon Michael
dd9e78a67a
reorganize tests
2010-12-27 20:26:22 +00:00
Simon Michael
17d5acf64b
refactor: more reader cleanups
2010-11-15 07:18:35 +00:00
Simon Michael
a3a7a346ac
uniquify reader module names
2010-11-15 07:01:46 +00:00
Simon Michael
d6c2cf6a90
parsing: save final parse context with journal
2010-11-13 15:03:40 +00:00
Simon Michael
334974dedd
fix double error message output, clean up some ghc-version-specific imports
2010-09-03 23:39:11 +00:00
Simon Michael
d29b393ca2
fix a failing test, handle unicode better in errors
2010-09-05 18:18:50 +00:00
Simon Michael
0773dde872
web: ui cleanups, replace balance/register with combo view
2010-07-27 22:49:45 +00:00
Simon Michael
2f6b82122f
tweak journal file auto-creation, add tests
2010-07-17 00:45:12 +00:00
Simon Michael
aaf14ffda1
fix a cabal dependency issue
2010-07-14 07:08:20 +00:00
Simon Michael
eefb04abfe
auto-create missing journal files rather than giving an error
2010-07-13 19:36:43 +00:00
Simon Michael
7d7159609b
refactor: much renaming of ledger -> journal, hopefully the right amount
2010-07-13 06:30:06 +00:00
Simon Michael
2a2b896c1d
webyesod: validate the journal before accepting an edit
2010-07-09 23:51:49 +00:00
Simon Michael
aa21f95b9e
webyesod: a destructive wiki-style edit form for journals
...
Warning: this is the first hledger feature which can alter your existing
journal data. You can now edit, or ERASE, the (top-level) journal file
through the web ui, and there is no access control. A numbered backup of
the file will be saved at each edit, in normal circumstances.
2010-07-09 23:00:04 +00:00
Simon Michael
8a64792ba7
smarter file reading: detect (or specify) intended data format and show appropriate error messages
...
New data reader modules need to provide just reader :: Reader, which is
the format name, a detector predicate, and a parser.
2010-06-25 14:56:48 +00:00
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