ob 
							
						 
					 
					
						
						
						
						
							
						
						
							8937ed457d 
							
						 
					 
					
						
						
							
							GHC 6.12.1 has UTF8 support on board. Using System.IO.UTF8 can cause problems.  
						
						... 
						
						
						
						Therefore use System.IO.UTF8 only on previous versions.
Testet with GHC 6.10.4 and 6.12.1 
						
					 
					
						2010-02-13 20:00:34 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							50200e38ed 
							
						 
					 
					
						
						
							
							more cleanup, move journal text into Journal  
						
						
						
					 
					
						2009-12-21 05:43:10 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							357b27fb63 
							
						 
					 
					
						
						
							
							fix an unsafe ! in ledgerAccount; clarify that withLedgerDo does not cache the ledger  
						
						
						
					 
					
						2010-02-04 20:55:12 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a2b8faa4d6 
							
						 
					 
					
						
						
							
							big refactoring, do filtering afresh in each command  
						
						... 
						
						
						
						We now do data filtering/massage as late as possible, not just once at
startup. This should work better for multiple commands, as with web or ui.
The basic benchmark seems at least as good as before thanks to laziness. 
						
					 
					
						2009-12-21 05:23:07 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8405072ff6 
							
						 
					 
					
						
						
							
							refactor  
						
						
						
					 
					
						2009-12-20 15:50:54 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2e9b27da0d 
							
						 
					 
					
						
						
							
							rename RawLedger to Journal  
						
						
						
					 
					
						2009-12-16 07:00:43 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							edc0913ed9 
							
						 
					 
					
						
						
							
							handle utf8 properly in error messages (issue  #5 )  
						
						
						
					 
					
						2009-07-09 19:12:27 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ef3b5ab98d 
							
						 
					 
					
						
						
							
							return non-zero exit code on parse failure  
						
						
						
					 
					
						2009-11-25 19:56:51 +00:00 
						 
				 
			
				
					
						
							
							
								marko.kocic 
							
						 
					 
					
						
						
						
						
							
						
						
							4407b6c59d 
							
						 
					 
					
						
						
							
							Hlint: Warning: Use if  
						
						
						
					 
					
						2009-09-23 09:29:31 +00:00 
						 
				 
			
				
					
						
							
							
								marko.kocic 
							
						 
					 
					
						
						
						
						
							
						
						
							96aa730951 
							
						 
					 
					
						
						
							
							Hlint: Error: Monad law, left identity  
						
						
						
					 
					
						2009-09-22 10:46:03 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a17346149c 
							
						 
					 
					
						
						
							
							a ledger remembers when it was read from disk  
						
						
						
					 
					
						2009-08-12 09:21:46 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1c9eb60a04 
							
						 
					 
					
						
						
							
							move openBrowserOn to Utils  
						
						
						
					 
					
						2009-06-28 21:06:07 +00:00 
						 
				 
			
				
					
						
							
							
								marko.kocic 
							
						 
					 
					
						
						
						
						
							
						
						
							ddc176d83e 
							
						 
					 
					
						
						
							
							Hlint: Warning: Eta reduce  
						
						
						
					 
					
						2009-09-22 15:56:59 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6fb1804cfd 
							
						 
					 
					
						
						
							
							refactor IOArgs -> FilterSpec and make haddock happy  
						
						
						
					 
					
						2009-07-09 20:25:50 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							cb8ea69dfc 
							
						 
					 
					
						
						
							
							fix warnings all over - hledger is now -W-clean  
						
						
						
					 
					
						2009-06-05 09:44:20 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d645e9f90b 
							
						 
					 
					
						
						
							
							add command now creates the ledger file if missing  
						
						
						
					 
					
						2009-05-16 20:45:05 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c5e7b12a59 
							
						 
					 
					
						
						
							
							add command, reads transactions interactively and adds them to the ledger  
						
						
						
					 
					
						2009-04-08 05:30:26 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2f43748d7d 
							
						 
					 
					
						
						
							
							docs  
						
						
						
					 
					
						2009-04-16 06:33:01 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1548e84aa9 
							
						 
					 
					
						
						
							
							add file path field to RawLedger  
						
						
						
					 
					
						2009-04-08 03:40:05 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b60f9187c0 
							
						 
					 
					
						
						
							
							refactor, moving generic io functions into Ledger.IO  
						
						
						
					 
					
						2009-04-04 08:50:36 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ab94a6e9a2 
							
						 
					 
					
						
						
							
							--uncleared option  
						
						
						
					 
					
						2009-04-03 11:45:56 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ae5a9439d0 
							
						 
					 
					
						
						
							
							count time elapsed in open timelog entries, ignore time zone  
						
						... 
						
						
						
						Any open sessions in a timelog will be considered clocked out as of the
current time, and included in calculations. Also, contrary to the earlier
patch we now ignore timezone everywhere and deal only with local times.
This might need revisiting eg to track time while crossing timezones. 
						
					 
					
						2009-01-25 07:06:59 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							44cbed59cb 
							
						 
					 
					
						
						
							
							use longer but standard and clearer getCurrentTime/Day  
						
						
						
					 
					
						2009-01-24 19:48:37 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b0178b88cc 
							
						 
					 
					
						
						
							
							make prepareLedger use current time, not just date  
						
						
						
					 
					
						2009-01-24 18:48:28 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a51596899f 
							
						 
					 
					
						
						
							
							a cached ledger now includes the full ledger text, also.  
						
						... 
						
						
						
						This reads the file twice, since I couldn't figure out how to do it just
once with the new error monad.. fixes welcome. 
						
					 
					
						2008-12-10 07:29:08 +00:00 
						 
				 
			
				
					
						
							
							
								nick 
							
						 
					 
					
						
						
						
						
							
						
						
							ee4a2a1c1e 
							
						 
					 
					
						
						
							
							New ledger parser with file inclusion  
						
						
						
					 
					
						2008-12-08 01:49:31 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1c969b5744 
							
						 
					 
					
						
						
							
							clean up ledger loading utilities  
						
						
						
					 
					
						2008-12-05 08:51:14 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ae9636e55c 
							
						 
					 
					
						
						
							
							refactor ledger preparation  
						
						
						
					 
					
						2008-11-29 20:00:21 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d25995c1c8 
							
						 
					 
					
						
						
							
							refactor with DateSpan  
						
						
						
					 
					
						2008-11-27 04:31:01 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							dc007e69a5 
							
						 
					 
					
						
						
							
							--options-anywhere to use ^ for negative patterns and permit options anywhere in command-line  
						
						
						
					 
					
						2008-11-25 19:29:33 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1312992000 
							
						 
					 
					
						
						
							
							more ledger parsing utilities, haddock  
						
						
						
					 
					
						2008-11-22 20:22:59 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c46189a75b 
							
						 
					 
					
						
						
							
							filter by account patterns when caching a ledger, fix balance report totals  
						
						
						
					 
					
						2008-11-22 05:51:48 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							47cf7c3eb6 
							
						 
					 
					
						
						
							
							gather match functions in one place  
						
						
						
					 
					
						2008-11-22 05:48:56 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							83d36dae63 
							
						 
					 
					
						
						
							
							more tests cleanup, and start to move match functions to Utils  
						
						
						
					 
					
						2008-11-22 04:44:12 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							5fcab59414 
							
						 
					 
					
						
						
							
							support negative patterns and ledger's special balance report account matching rule  
						
						
						
					 
					
						2008-10-15 17:04:47 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							2cef939da1 
							
						 
					 
					
						
						
							
							rename accounts/filteraccounts fields to accountmap/filteraccountmap  
						
						
						
					 
					
						2008-10-10 22:28:10 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							220417ce48 
							
						 
					 
					
						
						
							
							top-level Utils module  
						
						
						
					 
					
						2008-10-10 10:04:26 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							8dcc90ff58 
							
						 
					 
					
						
						
							
							fix compile warnings  
						
						
						
					 
					
						2008-06-28 04:44:49 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							ec1b5b9bce 
							
						 
					 
					
						
						
							
							balance: combine boring account names properly when matching account patterns  
						
						
						
					 
					
						2007-07-07 18:26:28 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d739ac0718 
							
						 
					 
					
						
						
							
							begin arbitrary currency support  
						
						
						
					 
					
						2007-07-04 02:24:33 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b2b9aba791 
							
						 
					 
					
						
						
							
							sort register by date  
						
						
						
					 
					
						2007-07-03 19:06:47 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a266a9b2e0 
							
						 
					 
					
						
						
							
							show numbers with thousands separator  
						
						
						
					 
					
						2007-07-03 19:01:13 +00:00