Simon Michael
5e944374de
web: don't auto-create a missing journal file at startup
2012-06-29 22:48:41 +00:00
Simon Michael
a6d93a164d
enable csv as a native data format (not yet obeying --rules-file)
2012-03-23 17:14:24 +00:00
Simon Michael
50068221c3
fix build warnings in all GHC versions
2012-03-29 21:19:35 +00:00
Simon Michael
1062e2f9a4
clean up reader selection, don't write a csv rules file on journal parse error
2012-05-28 18:40:36 +00:00
Simon Michael
3ee6a351f3
big query/tests/show refactoring
...
- use new query system for command line too, filterspec is no more
- move unit tests near the code they test, run them in bottom up order, add more
- more precise Show instances, used for debugging not ui
2012-05-27 18:14:20 +00:00
Simon Michael
db4d853a3f
refactor: move readJournal'
2012-04-14 01:10:39 +00:00
Simon Michael
88212f26e8
simplify journal parser names
2012-05-09 15:34:05 +00:00
Simon Michael
8492f6cae4
fix unicode handling on GHC >= 7.2, unify utf8 IO compatibility layer
...
tests pass again from GHC 6.12.3 to 7.4.1
2012-03-29 19:06:31 +00:00
Simon Michael
d4451ce5e3
read system cleanup, require conversion rules from a file to simplify API
2012-03-24 18:08:11 +00:00
Simon Michael
e396c0dc8d
push csv rule and format string types down
2012-03-24 01:58:34 +00:00
Simon Michael
fdb3677129
try only as many data readers as needed for a successful read
2012-03-23 17:13:30 +00:00
Simon Michael
6eb7ad28e1
refactor/beef up readJournal/readJournalFile
2012-03-23 16:21:41 +00:00
Simon Michael
4d7a809c4a
cleanups and early code for csv reader based on convert
2012-03-10 21:55:48 +00:00
Simon Michael
2e8cf1c7f2
reader code cleanups
2012-03-10 18:13:32 +00:00
Simon Michael
120a9fd0e1
docs: readJournalFile haddock fix
2012-03-11 21:36:02 +00:00
Simon Michael
de502e732b
drop unused TIMELOG env var
2011-09-21 23:12:53 +00:00
Simon Michael
556e3c9246
cli: give literal tilde error also with -f
2011-09-21 23:10:44 +00:00
Simon Michael
f5eecc34a3
cli: give a non-confusing error when literal tilde found in LEDGER_FILE
2011-09-21 22:58:47 +00:00
Simon Michael
14881d0515
add: trim whitespace in auto-created journal
2011-09-26 20:56:01 +00:00
Simon Michael
5ccfb9cf7a
note the use of unix line endings on all platforms ( #51 )
2011-09-27 20:55:48 +00:00
Simon Michael
9b2a5f56e1
only the add and web commands auto-create the journal file
2011-09-23 03:53:14 +00:00
Simon Michael
a44aa8d7d2
refactor: remove unnecessary LANGUAGE CPP pragmas
2011-07-17 23:29:57 +00:00
Simon Michael
cbb0fc5c59
move basic reports into hledger-lib
2011-08-15 22:59:06 +00:00
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