Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							07a7c3d3a8 
							
						 
					 
					
						
						
							
							lib: Use Text and Text builder only in postingAsLines.  
						
						
						
					 
					
						2021-01-02 15:08:09 +11:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							541c4fc18c 
							
						 
					 
					
						
						
							
							lib,cli: Use Text for CSV values.  
						
						
						
					 
					
						2021-01-02 15:08:09 +11:00 
						 
				 
			
				
					
						
							
							
								aragaer 
							
						 
					 
					
						
						
						
						
							
						
						
							2084b845e0 
							
						 
					 
					
						
						
							
							journal: Ignore AUTO commodity when strict checking  
						
						... 
						
						
						
						AUTO commodity is a placeholder for postings with missing amounts. It
should be ignored when doing a strict commodity check.
Fixes  #1419  
						
					 
					
						2020-12-31 09:54:23 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8306420b61 
							
						 
					 
					
						
						
							
							check: also check "accounts"/"commodities" on demand  
						
						... 
						
						
						
						(cherry picked from commit 0c2bf54f2955e3a25fd0282acc42608f957abaea) 
						
					 
					
						2020-12-31 08:33:36 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							31ea37a785 
							
						 
					 
					
						
						
							
							;check: accounts, commodities, payees, ordereddates: improve errors  
						
						... 
						
						
						
						Error messages for these four are now a bit fancier and more
consistent. But not yet optimised for machine readability.
Cf #1436 .
Added to hledger-lib: chomp1, linesPrepend[2]. 
						
					 
					
						2020-12-30 18:13:34 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e59603a04a 
							
						 
					 
					
						
						
							
							;check errors: drop unwanted newline & "strict mode" prefix  
						
						
						
					 
					
						2020-12-30 18:08:31 -08:00 
						 
				 
			
				
					
						
							
							
								Damien Cassou 
							
						 
					 
					
						
						
						
						
							
						
						
							b47d582583 
							
						 
					 
					
						
						
							
							;check: fixes  
						
						
						
					 
					
						2020-12-30 18:08:31 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3c232fbd7d 
							
						 
					 
					
						
						
							
							check: add "payees" check requiring payee declarations  
						
						
						
					 
					
						2020-12-30 18:08:30 -08:00 
						 
				 
			
				
					
						
							
							
								Damien Cassou 
							
						 
					 
					
						
						
						
						
							
						
						
							e092b38631 
							
						 
					 
					
						
						
							
							;lib: add 'payee' directive  
						
						
						
					 
					
						2020-12-30 18:08:30 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8c23a16bf8 
							
						 
					 
					
						
						
							
							journal: strict mode also requires commodity declarations  
						
						
						
					 
					
						2020-11-27 17:54:55 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ec3ad14ae5 
							
						 
					 
					
						
						
							
							strict mode: -s/--strict requires posted accounts to be declared  
						
						
						
					 
					
						2020-11-26 08:48:16 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0dc8eca68a 
							
						 
					 
					
						
						
							
							lib: remove partial code from journalApplyAliases etc.  
						
						
						
					 
					
						2020-11-25 21:06:31 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							94b3f090be 
							
						 
					 
					
						
						
							
							csv, timedot, timeclock: respect --alias options ( fix   #859 )  
						
						... 
						
						
						
						Command-line account aliases now also affect transactions read
from these formats (not just journal format).
lib: journalApplyAliases, transactionApplyAliases, postingApplyAliases
helpers have been added. 
						
					 
					
						2020-11-24 09:17:01 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5d4a6cd47e 
							
						 
					 
					
						
						
							
							;csv: tweak CsvRules Show for consistency with others  
						
						
						
					 
					
						2020-11-18 07:14:28 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ec2a774b18 
							
						 
					 
					
						
						
							
							cli, lib: move functional tests into hledger/test/  
						
						
						
					 
					
						2020-11-16 08:47:41 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8bdb28a991 
							
						 
					 
					
						
						
							
							csv, journal: infer style from first amount, as documented, not last  
						
						... 
						
						
						
						This has been broken since hledger 1.12 (!) 
						
					 
					
						2020-11-10 08:58:28 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f43c7e41d1 
							
						 
					 
					
						
						
							
							csv, journal: debug output  
						
						... 
						
						
						
						The prolific "assignment" output is now at level 9. 
						
					 
					
						2020-11-10 08:39:32 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							bfb5c6ee2a 
							
						 
					 
					
						
						
							
							lib: global commodity display styles can be set in InputOpts or Journal, overriding all others  
						
						
						
					 
					
						2020-11-09 17:14:37 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0eddbe7a4b 
							
						 
					 
					
						
						
							
							;lib: reader cleanups  
						
						
						
					 
					
						2020-11-09 17:14:37 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							524e23bc37 
							
						 
					 
					
						
						
							
							csv: decimal-mark rule to help with number parsing  
						
						... 
						
						
						
						Journal keeps a new piece of parsing state, a decimal mark character,
which can optionally be set to force the number format expected by all
amount parsers. 
						
					 
					
						2020-11-08 16:39:03 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4242a8592a 
							
						 
					 
					
						
						
							
							;csv: refactor amount parsing  
						
						
						
					 
					
						2020-11-08 16:39:03 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							dae007a372 
							
						 
					 
					
						
						
							
							cleanup  
						
						
						
					 
					
						2020-11-08 16:39:03 -08:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							2aaab4b1b7 
							
						 
					 
					
						
						
							
							lib: Make Default instances clearer, remove Default instance for Bool.  
						
						
						
					 
					
						2020-10-23 14:14:11 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c5513ba722 
							
						 
					 
					
						
						
							
							;tweak a few parse errors for clarity, consistency ( #1329 )  
						
						
						
					 
					
						2020-09-19 08:10:39 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							07dd30c1e5 
							
						 
					 
					
						
						
							
							lib,cli,ui: Change to consistent naming scheme for Hledger.Utils.Regex.  
						
						
						
					 
					
						2020-09-01 11:36:34 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							b91b391d08 
							
						 
					 
					
						
						
							
							lib: Replace some regex functions with parsers.  
						
						
						
					 
					
						2020-08-31 22:44:41 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							af31d6e140 
							
						 
					 
					
						
						
							
							lib,cli,ui: Remove redundant Typeable and Data instances.  
						
						... 
						
						
						
						Also add some explicit import lists. 
						
					 
					
						2020-08-31 15:41:30 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							e5371d5a6a 
							
						 
					 
					
						
						
							
							lib,cli,ui,web: Make Regexp a wrapper for Regex.  
						
						
						
					 
					
						2020-08-31 12:04:45 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							7182fa4746 
							
						 
					 
					
						
						
							
							lib: Improve documentation for amountRoundedQuantity, fix a typo.  
						
						
						
					 
					
						2020-08-30 23:01:04 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							f6fa76bba7 
							
						 
					 
					
						
						
							
							lib,cli: Get rid of magic values for asprecision, use a sum type instead.  
						
						
						
					 
					
						2020-08-30 23:00:35 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							ee1ef9606b 
							
						 
					 
					
						
						
							
							lib: Fail when parsing number with more than 255 decimal places.  
						
						
						
					 
					
						2020-08-30 22:30:24 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							ba59fed6b2 
							
						 
					 
					
						
						
							
							lib: Replace more instances of fromIntegral with safer versions.  
						
						
						
					 
					
						2020-08-30 22:20:58 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							ca2e55c954 
							
						 
					 
					
						
						
							
							lib: Replace some fromIntegral with toInteger.  
						
						
						
					 
					
						2020-08-30 22:20:58 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							b5ed2067d9 
							
						 
					 
					
						
						
							
							lib: Make aprecision and DigitGroupStyle use Word8 instead of Int. exponentp now parses an Integer rather than an Int.  
						
						
						
					 
					
						2020-08-30 22:20:53 +10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							371b349b2e 
							
						 
					 
					
						
						
							
							lib,cli: Replace parsedate and mkdatespan with direct applications of fromGregorian, transaction now takes Day instead of a date string.  
						
						
						
					 
					
						2020-08-29 15:08:28 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							2fd678e415 
							
						 
					 
					
						
						
							
							lib,cli,ui: Remove old CPP directives made redundant by version bounds.  
						
						
						
					 
					
						2020-08-29 15:08:28 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a3c749f9e7 
							
						 
					 
					
						
						
							
							csv: fix inferring separator from .ssv/.tsv file extensions  
						
						... 
						
						
						
						This was documented but untested and may have never worked. 
						
					 
					
						2020-08-21 08:59:55 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							108c548240 
							
						 
					 
					
						
						
							
							journal: when an account alias contains a bad regexp, show details  
						
						... 
						
						
						
						lib: accountNameApplyAliases, accountNameApplyAliasesMemo are now
total 
						
					 
					
						2020-08-06 15:27:40 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3f55c23603 
							
						 
					 
					
						
						
							
							;review, tag all error calls with an easier to find PARTIAL: comment ( #1312 )  
						
						
						
					 
					
						2020-08-05 16:08:33 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							242c05fc9a 
							
						 
					 
					
						
						
							
							lib, journal: parseQuery, modifyTransactions are now total ( #1312 )  
						
						... 
						
						
						
						modifyTransactions now also requires a reference date, for parsing queries.
Relative dates are now permitted in auto posting rules. 
						
					 
					
						2020-08-05 13:44:04 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							dc41cee2b0 
							
						 
					 
					
						
						
							
							lib: datep now requires years to be at least four digits.  
						
						
						
					 
					
						2020-07-31 17:22:27 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							ffb5cf0773 
							
						 
					 
					
						
						
							
							lib: Ensure parsed years have at least 4 digits.  
						
						
						
					 
					
						2020-07-31 17:22:27 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							7b9f9ae49c 
							
						 
					 
					
						
						
							
							lib: Refactor reportingintervalp to be more compact and do less backtracking.  
						
						
						
					 
					
						2020-07-31 17:22:27 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							081ee390ab 
							
						 
					 
					
						
						
							
							lib: Change skipMany spacenonewline to takeWhileP Nothing isNonNewlineSpace.  
						
						
						
					 
					
						2020-07-22 14:58:53 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							fd9171df07 
							
						 
					 
					
						
						
							
							journal: account types: add Cash, tweak fallback regexp, rewrite docs  
						
						
						
					 
					
						2020-07-17 08:02:12 -07:00 
						 
				 
			
				
					
						
							
							
								Michael Sanders 
							
						 
					 
					
						
						
						
						
							
						
						
							5ec0a518da 
							
						 
					 
					
						
						
							
							csv: Add support for & operators in conditional blocks  
						
						
						
					 
					
						2020-07-07 12:51:01 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							765fb732c9 
							
						 
					 
					
						
						
							
							debug: move command parsing debug output down to level 8  
						
						
						
					 
					
						2020-07-03 11:37:01 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							21349c161e 
							
						 
					 
					
						
						
							
							lib: only memoize in csv reader when there are more than 15 cond. blocks  
						
						
						
					 
					
						2020-06-22 12:10:47 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							8844ef1b5f 
							
						 
					 
					
						
						
							
							lib: put conditionalblockp pasrser first as it is a more common case  
						
						
						
					 
					
						2020-06-22 12:10:47 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							ed01e57b23 
							
						 
					 
					
						
						
							
							lib: tabular rules separator cannot be space  
						
						
						
					 
					
						2020-06-22 12:10:47 -07:00