Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							bc4ea83d86 
							
						 
					 
					
						
						
							
							;csv: refactor transactionFromCsvRecord  
						
						
						
					 
					
						2020-02-27 12:58:30 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2dd6e2d797 
							
						 
					 
					
						
						
							
							;csv: refactor transactionFromCsvRecord  
						
						
						
					 
					
						2020-02-27 12:09:39 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b18f71a81b 
							
						 
					 
					
						
						
							
							;csv: extract mkPosting! and refactor  
						
						
						
					 
					
						2020-02-27 11:51:11 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f2767477ab 
							
						 
					 
					
						
						
							
							;csv: refactor transactionFromCsvRecord, extract those helpers  
						
						
						
					 
					
						2020-02-27 11:19:37 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6f08eed719 
							
						 
					 
					
						
						
							
							;csv: refactor transactionFromCsvRecord, note forgotten rule  
						
						... 
						
						
						
						Clarify some helpers. Also note the forgotten default-accountN rule. 
						
					 
					
						2020-02-27 11:03:58 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5a2f28f3ac 
							
						 
					 
					
						
						
							
							;csv: refactor transactionFromCsvRecord  
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2020-02-27 01:23:28 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a87baf4b29 
							
						 
					 
					
						
						
							
							;csv: refactor: rename JournalFieldName -> HledgerFieldName  
						
						
						
					 
					
						2020-02-27 01:00:35 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							be5fc09ebb 
							
						 
					 
					
						
						
							
							;csv: refactor: more transactionFromCsvRecord cleanups  
						
						
						
					 
					
						2020-02-27 00:41:10 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							93358d72b4 
							
						 
					 
					
						
						
							
							;csv: refactor transactionFromCsvRecord  
						
						
						
					 
					
						2020-02-27 00:30:45 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							02f2e3bd9b 
							
						 
					 
					
						
						
							
							csv: refine unknown accounts more thoroughly, a better fix for  #1192  
						
						
						
					 
					
						2020-02-26 22:45:49 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							58bb0df5ab 
							
						 
					 
					
						
						
							
							csv: undo failed  #1192  fix, causing "_unknown_" accounts; refactor  
						
						... 
						
						
						
						Restore the old logic, while also trying to clarify this
transaction-generating code, and add some tests.
See also #1198 . 
						
					 
					
						2020-02-26 21:46:11 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							fb788a64e8 
							
						 
					 
					
						
						
							
							;csv: cleanups, drop match operator for now  
						
						
						
					 
					
						2020-02-26 11:52:47 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d537f1fe07 
							
						 
					 
					
						
						
							
							csv: allow single field matching; more docs and tests  
						
						
						
					 
					
						2020-02-26 08:55:55 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							becd891dd1 
							
						 
					 
					
						
						
							
							;csv: Matcher type, simplify  
						
						
						
					 
					
						2020-02-25 13:44:45 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1cbce98a68 
							
						 
					 
					
						
						
							
							;csv: refactor, ConditionalBlock ADT  
						
						
						
					 
					
						2020-02-25 13:44:45 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2d90074b2e 
							
						 
					 
					
						
						
							
							;csv: avoid a potential display of internal placeholder ( #1192 )  
						
						... 
						
						
						
						With a multicommodity amount, the unknown account name will always be
"expenses:unknown". 
						
					 
					
						2020-02-15 14:02:53 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							017d3355f8 
							
						 
					 
					
						
						
							
							csv: allow manual assignment of "expenses:unknown" again ( fix   #1192 )  
						
						
						
					 
					
						2020-02-15 13:52:59 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							80ab45984b 
							
						 
					 
					
						
						
							
							csv: also recognise .tsv, .ssv extensions; document thoroughly ( #1179 )  
						
						
						
					 
					
						2020-01-20 12:58:47 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							3ead97975c 
							
						 
					 
					
						
						
							
							Inline function, add debug statement  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							9011aaa5ba 
							
						 
					 
					
						
						
							
							Refactor getSeparator  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							92f680875f 
							
						 
					 
					
						
						
							
							Parse reserved words case insensitively  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							8df4e1ed83 
							
						 
					 
					
						
						
							
							Remove --separator command line argument  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							02d9205af7 
							
						 
					 
					
						
						
							
							Allow separator to be overridden from command line  
						
						... 
						
						
						
						This also fixes that parsing separators on the command line and the
rules file was not handled the same way. 
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							b524a088c7 
							
						 
					 
					
						
						
							
							Implement getting separator from rules  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							32ccc3a2b2 
							
						 
					 
					
						
						
							
							Add directive  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							ec0f55d18e 
							
						 
					 
					
						
						
							
							Add missing type signature  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							b104b3b8a3 
							
						 
					 
					
						
						
							
							Explictly discard result  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							42d585d20b 
							
						 
					 
					
						
						
							
							Refactor: rename variable  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Aleksandar Dimitrov 
							
						 
					 
					
						
						
						
						
							
						
						
							63cda87e86 
							
						 
					 
					
						
						
							
							Whitespace  
						
						
						
					 
					
						2020-01-05 14:45:57 -08:00 
						 
				 
			
				
					
						
							
							
								Brian Wignall 
							
						 
					 
					
						
						
						
						
							
						
						
							2852f9dbee 
							
						 
					 
					
						
						
							
							Fix typos  
						
						
						
					 
					
						2019-12-21 12:09:05 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							13e6c7dfdf 
							
						 
					 
					
						
						
							
							lib: drop "assertion" alias for nullassertion  
						
						... 
						
						
						
						Perhaps we'll stick with the null* convention. Fixes a warning in Transaction.hs. 
						
					 
					
						2019-12-09 06:08:03 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a0b92e02b9 
							
						 
					 
					
						
						
							
							Revert "remove old fail compatibility imports that are obsolete ?"  
						
						... 
						
						
						
						They are needed with ghc <8.4, not for fail but for <> I think.
Try cleaning up again another time.
This reverts commit 318ce7eb07 
						
					 
					
						2019-12-01 11:32:51 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							318ce7eb07 
							
						 
					 
					
						
						
							
							remove old fail compatibility imports that are obsolete ?  
						
						
						
					 
					
						2019-12-01 08:31:50 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2b2a0b3cf8 
							
						 
					 
					
						
						
							
							;tests: use "test" alias for testCase everywhere  
						
						... 
						
						
						
						Easier to type and read, and a little clearer to my eyes;
"testCase" implies a single case, but it can contain many assertions. 
						
					 
					
						2019-11-28 15:33:33 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b36f6df110 
							
						 
					 
					
						
						
							
							tests: port all unit tests to tasty, second pass ( #1090 )  
						
						... 
						
						
						
						Hledger.Util.Tests helpers have been cleaned up, and test names are
now shown.
Tests have been cleaned up a bit. Some groups of unnamed tests have
been collapsed into a single named test containing a sequence of
assertions. The test command counts named tests, not assertions, so
the reported unit test count has dropped from 199 to 188. 
						
					 
					
						2019-11-27 13:17:34 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							aa051a05cf 
							
						 
					 
					
						
						
							
							lib: support generation of (un)balanced virtual postings in csv reader  
						
						
						
					 
					
						2019-11-23 10:28:10 -08:00 
						 
				 
			
				
					
						
							
							
								Mykola Orliuk 
							
						 
					 
					
						
						
						
						
							
						
						
							097486a247 
							
						 
					 
					
						
						
							
							;lib: re-enable doctests  
						
						
						
					 
					
						2019-11-19 03:58:56 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							c4d650e6ad 
							
						 
					 
					
						
						
							
							lib: balance-style -> balance-type  
						
						
						
					 
					
						2019-11-13 09:06:25 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							39bc183340 
							
						 
					 
					
						
						
							
							lib: csv reader gets balance-style directive  
						
						
						
					 
					
						2019-11-13 09:06:25 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							fb3c1a132c 
							
						 
					 
					
						
						
							
							csv: fix parsing of whitespace on line after an if block ( fix   #1120 )  
						
						
						
					 
					
						2019-11-13 05:41:32 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							94f912e558 
							
						 
					 
					
						
						
							
							lib: better resolution of csv field aliases ("balance" vs "balance1", etc)  
						
						
						
					 
					
						2019-11-12 12:20:09 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c4d7cc198a 
							
						 
					 
					
						
						
							
							csv: finalise and check journals generated from CSV ( #1000 )  
						
						... 
						
						
						
						Invalid transactions generated from CSV will now be rejected.
I updated some csv tests to avoid this, except for 21, which
probably needs more cleanup. 
						
					 
					
						2019-11-07 18:58:12 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							fc001da1ef 
							
						 
					 
					
						
						
							
							lib: expenses:unknown is a much better default account name  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							c66ccc5cee 
							
						 
					 
					
						
						
							
							lib: do not try to balance transaction in csv reader  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							95ec5715cc 
							
						 
					 
					
						
						
							
							lib: better compatibility code in csv reader  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							d62f84bec2 
							
						 
					 
					
						
						
							
							lib: csv reader does not generate postings if account=""  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							8d24a40150 
							
						 
					 
					
						
						
							
							lib: csv parser fills out amounts on all postings, if possible  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							637741a755 
							
						 
					 
					
						
						
							
							lib: amount1 is no longer magical  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							977592e49c 
							
						 
					 
					
						
						
							
							lib: typo fix, "expense:unknown" -> "expenses:unknown"  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							3c7d5d466d 
							
						 
					 
					
						
						
							
							lib, doc, test: csv parser gains "end" command for "if" block  
						
						
						
					 
					
						2019-11-05 21:16:42 +00:00