Simon Michael
630e22312b
remove DateTime and Date types, use Day and UTCTime directly
...
This seems simplest for now, I might bring type synonyms back later.
2008-11-27 04:01:07 +00:00
Simon Michael
884ebf2979
gather date stuff together, FuzzyDate -> SmartDate
2008-11-27 00:35:00 +00:00
Simon Michael
e8a0d42906
cleanup
2008-11-26 22:15:22 +00:00
Simon Michael
8c56c3c4b3
refactoring date parsing, FuzzyDate
2008-11-26 23:21:24 +00:00
Simon Michael
49a84957a9
cleanup smartdate
2008-11-26 21:34:26 +00:00
Simon Michael
3e1a615dbf
misc cleanup
2008-11-26 05:21:44 +00:00
Simon Michael
4d49177117
hacking in more date parsing.. today/tomorrow/yesterday
2008-11-26 04:51:15 +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
b3c0bba51e
haddock fix
2008-11-24 00:14:11 +00:00
Simon Michael
dfe59676fb
support all five date comparisons in --display
2008-11-26 21:18:24 +00:00
Simon Michael
33b2deba75
correction, dates in display expressions should be in brackets
2008-11-25 18:47:26 +00:00
Simon Michael
0582046648
preliminary --display/-d support (-d "d>DATE", sufficient for reconciling)
2008-11-24 21:51:31 +00:00
Simon Michael
64c6082c23
parse comment lines beginning with a space, as from M-; in emacs ledger-mode
2008-10-18 10:54:22 +00:00
Simon Michael
a49b9715ef
allow extra whitespace and comments at end of ledger
2008-11-22 07:00:52 +00:00
Simon Michael
7362fbd730
begin smart date parsing
2008-11-22 12:18:19 +00:00
tim
60b4610c2f
Fix bug in parsing of TimeLogs, and enabled a test case for them
2008-11-12 07:17:31 +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
33f06f334e
first attempt at storing per-amount price
2008-11-22 16:26:01 +00:00
Simon Michael
8e412b1be3
autoamt -> missingamt
2008-10-18 20:29:42 +00:00
Simon Michael
0b23598138
remove the hard-coded rate from Commodity
2008-10-18 10:46:49 +00:00
Simon Michael
80beac7d43
try making MixedAmount a full newtype, to avoid TypeSynonymInstances error
2008-10-18 10:38:01 +00:00
Simon Michael
648887b36f
use MixedAmount everywhere. seems to work.
2008-10-18 08:39:08 +00:00
Simon Michael
d31ba41703
rename and unify the autofill stuff
2008-10-18 06:45:02 +00:00
Simon Michael
dce8fd0dde
parse virtual and balanced virtual transactions, refactor register and transaction output
2008-10-16 06:00:46 +00:00
Simon Michael
014723497f
allow any non-whitespace in account names, perhaps avoiding misleading missing amounts errors
2008-10-16 04:17:25 +00:00
Simon Michael
3138046744
clarify entry balance checking and show the full entry when unbalanced
2008-10-15 06:47:47 +00:00
Simon Michael
1e3291af48
focus on tests in Tests.hs, clean up
2008-10-15 06:32:52 +00:00
Simon Michael
760befef89
more cleanups
2008-10-15 06:00:10 +00:00
Simon Michael
b1e2a83556
comment update
2008-10-15 00:33:15 +00:00
Simon Michael
042a8179e8
always give a proper parse error for numbers, remember precisions and thousands separators
...
(per amount for now)
2008-10-14 23:14:31 +00:00
Simon Michael
4efdda25b4
replace Currency with a more flexible, ledger-style Commodity
2008-10-12 21:52:48 +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
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
dff086a69d
cleanups
2008-10-08 19:36:22 +00:00
Simon Michael
83e58501fc
Parse cleanups
2008-10-08 18:25:51 +00:00
Simon Michael
fa1b4bdfa2
rename parseError, parsePatternArgs, fix a bug
2008-10-08 18:02:34 +00:00
Simon Michael
b8b3de0719
document an issue with parse errors
2008-10-08 17:47:58 +00:00
Simon Michael
9ad1310f60
fix the timelog parser, make timelog reports work
2008-10-03 13:41:27 +00:00
Simon Michael
e9f4b32d02
don't treat accounts with trailing space and no amount as different
2008-10-03 09:47:50 +00:00
Simon Michael
3aa656ba69
rename LedgerEntry to Entry
2008-10-03 02:37:19 +00:00
Simon Michael
9ca02e21e4
Parse doc cleanup
2008-10-03 02:28:58 +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