Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							70d87613f2 
							
						 
					 
					
						
						
							
							some cleanup of debug trace helpers  
						
						
						
					 
					
						2015-05-14 13:01:49 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8e50395b7c 
							
						 
					 
					
						
						
							
							ErrorT -> ExceptT, handle mtl <2.2.1 && >=2.2.1 ( #239 )  
						
						
						
					 
					
						2015-03-29 14:16:42 -07:00 
						 
				 
			
				
					
						
							
							
								Julien Moutinho 
							
						 
					 
					
						
						
						
						
							
						
						
							cf28985cf2 
							
						 
					 
					
						
						
							
							lib: move from Text.ParserCombinators.Parsec to Text.Parsec  
						
						... 
						
						
						
						NOTE: required to use liftIO in includedirective
SEE: http://www.vex.net/~trebla/haskell/parsec-generally.xhtml#IO  
						
					 
					
						2014-11-20 10:08:30 +01:00 
						 
				 
			
				
					
						
							
							
								Gergely Risko 
							
						 
					 
					
						
						
						
						
							
						
						
							6e4a7dff8c 
							
						 
					 
					
						
						
							
							Add support for ledger3 style multi-line comments  
						
						
						
					 
					
						2014-10-26 19:20:46 +01:00 
						 
				 
			
				
					
						
							
							
								gwern 
							
						 
					 
					
						
						
						
						
							
						
						
							d1618aaca8 
							
						 
					 
					
						
						
							
							strip trailing whitespace from all Haskell files  
						
						
						
					 
					
						2014-10-14 18:48:24 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0c3148ac7b 
							
						 
					 
					
						
						
							
							add an --ignore-assertions flag  
						
						... 
						
						
						
						Can be helpful when reading Ledger files, where assertions may have
different semantics; or for getting some answers from your journal
to help you fix your assertions.
Could be called --no-assertions, but this might create surprise when it
has an effect contrary to --no-new-accounts.
I had to add another flag throughout the parsers & journal read
functions, ok for now. 
						
					 
					
						2014-07-01 18:26:37 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							cf3d21afef 
							
						 
					 
					
						
						
							
							csv and general reader fixes, cleanups  
						
						... 
						
						
						
						- The CSV reader no longer writes a "(stdin).rules" file when reading
  from stdin.
- Selection of reader(s) is now smarter when input is coming from stdin.
  Previously, all readers were considered applicable for stdin.  This
  meant that when reading a CSV file from stdin, the journal and timelog
  readers were always tried first, and if the CSV file was unparseable,
  you'd see the first (journal) reader's error instead of the CSV
  reader's.  Now, the readers do some basic content sniffing when
  reading stdin, so it generally tries only the one right reader and
  we'll see the right errors.
- The read system now has more debug output. 
						
					 
					
						2014-05-09 17:55:32 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							7291977e6f 
							
						 
					 
					
						
						
							
							rename Format to StorageFormat  
						
						
						
					 
					
						2014-03-02 13:37:10 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							431ef894e0 
							
						 
					 
					
						
						
							
							cli: clarify "hledger add" command in no journal file error  
						
						
						
					 
					
						2014-02-12 09:15:21 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5223bc5c41 
							
						 
					 
					
						
						
							
							lib: rename and expose more journal file parsers  
						
						
						
					 
					
						2014-02-05 18:55:38 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							dc8b687056 
							
						 
					 
					
						
						
							
							extra: hledger-rewrite script  
						
						
						
					 
					
						2014-02-05 13:03:06 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							42385fc8bf 
							
						 
					 
					
						
						
							
							parsing: read dos line endings, deprecate encoding compatibility layer  
						
						... 
						
						
						
						We should now read all text in universal newline mode, so eg journal
files with DOS/windows line endings are fine.
This also deprecates and disables our IO encoding compatibility layer,
which prevented many encoding-related problems with certain platforms
and GHC versions. With modern GHC (7.x) this is now hopefully totally
unnecessary, but the module remains in place just in case. 
						
					 
					
						2013-04-12 16:18:20 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							9ffb0b2d1f 
							
						 
					 
					
						
						
							
							export journal file code parser, part 2 - missed a bit >:|  
						
						
						
					 
					
						2013-02-25 19:35:51 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e75abc4625 
							
						 
					 
					
						
						
							
							parse posting dates, better comment/tag handling, begin using HTF for unit testing  
						
						
						
					 
					
						2012-12-06 00:28:23 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							64180b18ef 
							
						 
					 
					
						
						
							
							refactor: clarify that price amounts have only a single commodity  
						
						
						
					 
					
						2012-11-19 23:17:55 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4567e91409 
							
						 
					 
					
						
						
							
							refactor: move amount display settings out of commodity, simplify amount construction  
						
						
						
					 
					
						2012-11-19 21:20:10 +00:00 
						 
				 
			
				
					
						
							
							
								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