Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4a74680a22 
							
						 
					 
					
						
						
							
							;lib: rename some budget report helpers  
						
						 
						
						... 
						
						
						
						The new names are of course verbose, but more consistent and revealing. 
						
					 
					
						2020-11-19 14:59:08 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0ce9c352ec 
							
						 
					 
					
						
						
							
							add: don't let number style disturb the default ( Fixes   #1378 )  
						
						 
						
						
						
					 
					
						2020-11-14 11:08:01 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1f94aa1628 
							
						 
					 
					
						
						
							
							;lib: make file modification/reloading helpers more robust ( #1390 )  
						
						 
						
						... 
						
						
						
						Work on hledger-web tests showed some bad behaviour, in particular
journalReloadIfNewer would always reload a journal read from a string
or stdout. This is now fixed, and an ugly read.show conversion has
been cleaned up.
Hledger.Cli.Utils API changes:
removed:
- journalSpecifiedFileIsNewer
- fileModificationTime
added:
- utcTimeToClockTime
changed:
- journalFileIsNewer now requires a file argument 
						
					 
					
						2020-11-13 16:28:35 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							70f95e9f2c 
							
						 
					 
					
						
						
							
							;doc: journal: clarify that it's the first-seen digit group style  
						
						 
						
						
						
					 
					
						2020-11-10 09:29:04 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							a97daaf322 
							
						 
					 
					
						
						
							
							lib: replace pretty-show with pretty-simple  
						
						 
						
						... 
						
						
						
						pretty-simple, already used in .ghci, will hopefully give nicer debug
output, including for values which don't have Read-able Show output.
This should mean that we can start removing custom string-like Show
instances that were a workaround for pretty-show.
We are using the latest version (4.0.0.0) to get compact output.
Here's some old pretty-show output:
 CsvRules
   { rdirectives = [ ( "skip" , "1" ) ]
   , rcsvfieldindexes = [ ( "date" , 1 ) , ( "amount" , 2 ) ]
   , rassignments = [ ( "amount" , "%2" ) , ( "date" , "%1" ) ]
   , rconditionalblocks = []
   }
And the new pretty-simple output:
 CsvRules
   { rdirectives=
     [ ( "skip", "1" ) ]
   , rcsvfieldindexes=
     [ ( "date", 1 ), ( "amount", 2 ) ]
   , rassignments=
     [ ( "amount", "%2" ), ( "date", "%1" ) ]
   , rconditionalblocks= []
   }
Non-compact pretty-simple output would be:
 CsvRules
     { rdirectives=
         [
             ( "skip"
             , "1B"
             )
         ]
     , rcsvfieldindexes=
         [
             ( "date"
             , 1
             )
         ,
             ( "amount"
             , 2
             )
         ]
     , rassignments=
         [
             ( "amount"
             , "%2"
             )
         ,
             ( "date"
             , "%1"
             )
         ]
     , rconditionalblocks=[]
     }
Also:
- Account's Show instance no longer converts : to _ in account names
- drop unused pretty-show dependency from hledger, hledger-ui packages
- regenerate hledger-lib with the older hpack that's shipped in stack 
						
					 
					
						2020-11-10 08:06:11 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							66af4962a1 
							
						 
					 
					
						
						
							
							;lib: drop a todo, seems ok  
						
						 
						
						
						
					 
					
						2020-11-09 17:14:38 -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  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							3abc9f5985 
							
						 
					 
					
						
						
							
							lib: When calculating elisions, don't skip over some amounts.  
						
						 
						
						
						
					 
					
						2020-11-04 14:25:21 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							dcb884c5ff 
							
						 
					 
					
						
						
							
							lib: Align postings to unnormalised amount widths.  
						
						 
						
						
						
					 
					
						2020-11-04 14:25:20 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							7e47c11fda 
							
						 
					 
					
						
						
							
							lib: Remove some uses of pad(Left|Right)Wide to ensure we're using the  
						
						 
						
						... 
						
						
						
						width provided by showMixed.
Also refactor renderTable to be a bit clearer, and to avoid duplicate
calculations. 
						
					 
					
						2020-11-04 14:25:20 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							b39de5989f 
							
						 
					 
					
						
						
							
							lib: Refactor and improve comments for new mixed amount display functions.  
						
						 
						
						
						
					 
					
						2020-11-04 14:25:20 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							9de238757b 
							
						 
					 
					
						
						
							
							lib,cli,ui: Introduce showMixed*Unnormalised, eliminate most direct calls of strWidth.  
						
						 
						
						... 
						
						
						
						This introduces some new helper functions which are exactly the same
as what we had before, but do not call
normaliseMixedAmountSquashPricesForDisplay, so that we can use the new
functions for displaying Transaction and Posting. It also goes through
and gets rid of most uses of the old showMixed* functions which would
benefit from using the new interface. 
						
					 
					
						2020-11-04 14:25:20 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							162a936360 
							
						 
					 
					
						
						
							
							lib: BudgetReport uses new renderTable inteface, now has more compact output.  
						
						 
						
						... 
						
						
						
						This changes showMixedAmountElided so that the width to elide to is
given as an argument, rather than fixed at 22 characters. This
actually uses the new renderTable interface. Mostly this is just an
internal change, but since we have more information about the widths
of things, we can actually get rid of some superfluous spaces in the
budget report output, previously there to make sure it stayed aligned
with the largest reasonable contents. 
						
					 
					
						2020-11-04 14:25:20 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							57d7b223a2 
							
						 
					 
					
						
						
							
							lib: Write new showMixedAmount* functions which keep track of length.  
						
						 
						
						... 
						
						
						
						Previously showMixedAmountElided would show two amounts and then the
elision string if necessary. Now it will display as many Amounts as it
can subject to the condition that the amounts plus the elision string
fit within 22 characters. 
						
					 
					
						2020-11-04 14:25:20 +11:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							64e3e5c54d 
							
						 
					 
					
						
						
							
							lib: Improve documentation for StringFormat, remove type alias for Valuation.  
						
						 
						
						
						
					 
					
						2020-10-23 14:14:11 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							103308e795 
							
						 
					 
					
						
						
							
							lib,cli: Store StringFormat in ReportOpts, rather than unparsed String.  
						
						 
						
						... 
						
						
						
						StringFormat now also takes an optional overline width, which is
currently only used by defaultBalanceLineFormat. 
						
					 
					
						2020-10-23 14:14:11 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							5a6d38fdf2 
							
						 
					 
					
						
						
							
							lib: For ymd date parsing, don't consume invalid date components.  
						
						 
						
						
						
					 
					
						2020-10-18 21:28:46 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							08ee311875 
							
						 
					 
					
						
						
							
							journal: fix error when P directive has a zero price  ( #1373 )  
						
						 
						
						
						
					 
					
						2020-10-18 20:48:14 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c5513ba722 
							
						 
					 
					
						
						
							
							;tweak a few parse errors for clarity, consistency ( #1329 )  
						
						 
						
						
						
					 
					
						2020-09-19 08:10:39 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a9fbaaf284 
							
						 
					 
					
						
						
							
							;partial comment cleanups  
						
						 
						
						
						
					 
					
						2020-09-03 09:52:00 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c2929939e4 
							
						 
					 
					
						
						
							
							make account type autodetection (& hledger-smooth) case insensitive again ( #1341 )  
						
						 
						
						... 
						
						
						
						lib: added case-insensitive variants of the accountNameToRegex functions. 
						
					 
					
						2020-09-03 09:52:00 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							8dfffb1e61 
							
						 
					 
					
						
						
							
							lib,web: Replace regex functions with simple text replacement.  
						
						 
						
						
						
					 
					
						2020-08-31 20:45:28 +10:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							2cd7877c46 
							
						 
					 
					
						
						
							
							lib: Remove unnecessary NFData instances.  
						
						 
						
						
						
					 
					
						2020-08-31 15:41:36 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							542052478d 
							
						 
					 
					
						
						
							
							;lib: Types pragmas  
						
						 
						
						
						
					 
					
						2020-08-10 06:22:40 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b76caae338 
							
						 
					 
					
						
						
							
							fix doctest breakage ( #1312 )  
						
						 
						
						
						
					 
					
						2020-08-08 08:53:55 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							f2dcbd2fee 
							
						 
					 
					
						
						
							
							lib: Make ill-formed SmartDates unrepresentable.  
						
						 
						
						
						
					 
					
						2020-08-07 14:20:08 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							08ad220448 
							
						 
					 
					
						
						
							
							lib: In quarterdatespanp, use yearp and allow uppercase Q.  
						
						 
						
						
						
					 
					
						2020-08-04 09:10:53 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Henning Thielemann 
							
						 
					 
					
						
						
						
						
							
						
						
							9c9701fe7d 
							
						 
					 
					
						
						
							
							lib: quarterdatespanp ( fixes   #1247 )  
						
						 
						
						
						
					 
					
						2020-07-31 17:37:41 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Henning Thielemann 
							
						 
					 
					
						
						
						
						
							
						
						
							ccac09fb1b 
							
						 
					 
					
						
						
							
							lib: doubledatespanp: fix and re-enable doctest  
						
						 
						
						
						
					 
					
						2020-07-31 17:37:41 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							696d9c73b0 
							
						 
					 
					
						
						
							
							lib: Remove unnecessary try in parsers, replace unnecessary string' with string, rewrite some parsers in applicative style.  
						
						 
						
						
						
					 
					
						2020-07-31 17:22:27 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							a82c383370 
							
						 
					 
					
						
						
							
							lib: disallow tabs in simplecommoditysymbolp ( fixes   #1301 )  
						
						 
						
						
						
					 
					
						2020-07-28 15:33:47 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							081ee390ab 
							
						 
					 
					
						
						
							
							lib: Change skipMany spacenonewline to takeWhileP Nothing isNonNewlineSpace.  
						
						 
						
						
						
					 
					
						2020-07-22 14:58:53 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e4f8b80d3b 
							
						 
					 
					
						
						
							
							;journal: account types: fix detection of Cash as an Asset, add tests  
						
						 
						
						
						
					 
					
						2020-07-17 10:02:14 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							fd9171df07 
							
						 
					 
					
						
						
							
							journal: account types: add Cash, tweak fallback regexp, rewrite docs  
						
						 
						
						
						
					 
					
						2020-07-17 08:02:12 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							30f02b0882 
							
						 
					 
					
						
						
							
							lib: account name clipping takes Maybe Int as depth.  
						
						 
						
						
						
					 
					
						2020-07-17 07:41:27 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							dc076b0d5b 
							
						 
					 
					
						
						
							
							lib: Use text library functions for stripping.  
						
						 
						
						
						
					 
					
						2020-07-16 10:03:25 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							ed99aea7d5 
							
						 
					 
					
						
						
							
							lib: Introduce takeEnd to get rid of some reverse . take n . reverse.  
						
						 
						
						
						
					 
					
						2020-07-16 10:03:25 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							bf2fe3d88e 
							
						 
					 
					
						
						
							
							;lib: valuation debug output note  
						
						 
						
						
						
					 
					
						2020-07-14 10:21:45 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							fd729beabf 
							
						 
					 
					
						
						
							
							lib: Work around hiding deprecation warnings, don't traverse zeros twice in normaliseHelper.  
						
						 
						
						
						
					 
					
						2020-07-10 12:18:51 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							ee3ed6acdf 
							
						 
					 
					
						
						
							
							lib: Simplify and speed up amountLooksZero.  
						
						 
						
						
						
					 
					
						2020-07-10 12:18:51 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							99b74dc389 
							
						 
					 
					
						
						
							
							lib: Refactor sortAccountTreeByAmount  
						
						 
						
						
						
					 
					
						2020-07-10 09:08:03 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4b9a76068f 
							
						 
					 
					
						
						
							
							lib: spanStartYear, spanEndYear, spanYears DateSpan helpers  
						
						 
						
						
						
					 
					
						2020-07-09 12:52:40 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							44c3eb1904 
							
						 
					 
					
						
						
							
							add a color argument to most amount show helpers, drop cshow variants  
						
						 
						
						... 
						
						
						
						This is an API change, but it seems better than having additional
colour-supporting variants and trying to avoid duplicated code.
I stopped short of changing showAmount, so cshowAmount still exists. 
						
					 
					
						2020-07-05 06:59:16 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2739a70a38 
							
						 
					 
					
						
						
							
							balcmds: elide amounts with 3 or more commodities, unless --no-elide  
						
						 
						
						... 
						
						
						
						Multicolumn balance reports showing many commodities tend to become
unreadably wide, especially in tree mode. Now by default we show at
most two commodities, and a count of the rest if there are more than
two. This should help keep reports somewhat readable by default. 
						
					 
					
						2020-07-05 06:59:16 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							c811ea4c7b 
							
						 
					 
					
						
						
							
							lib, cli, ui, web: intopt and friends now make sure their arguments fit  
						
						 
						
						... 
						
						
						
						inside bounds. 
						
					 
					
						2020-07-03 12:35:51 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							765fb732c9 
							
						 
					 
					
						
						
							
							debug: move command parsing debug output down to level 8  
						
						 
						
						
						
					 
					
						2020-07-03 11:37:01 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6cc896a8fe 
							
						 
					 
					
						
						
							
							debug: show aliasing and auto postings with other reading (level 7)  
						
						 
						
						
						
					 
					
						2020-07-03 11:30:52 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							015492553e 
							
						 
					 
					
						
						
							
							lib: Move unifyMixedAmount to Hledger.Data.Amount, make it return Maybe Amount, export it.  
						
						 
						
						
						
					 
					
						2020-06-24 10:24:11 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							b3cd865786 
							
						 
					 
					
						
						
							
							lib: Add fortnightly as a synonym for biweekly.  
						
						 
						
						
						
					 
					
						2020-06-23 06:48:20 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							7a74fc4f21 
							
						 
					 
					
						
						
							
							lib: Elide account if more components are dropped than exist.  
						
						 
						
						
						
					 
					
						2020-06-22 13:41:22 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e3cae4aadc 
							
						 
					 
					
						
						
							
							valuation: implement new --infer-value flag & semantics ( #1239 ,  #1253 )  
						
						 
						
						
						
					 
					
						2020-06-19 14:40:20 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							467210c796 
							
						 
					 
					
						
						
							
							;valuation: refactor, update, clean up  
						
						 
						
						
						
					 
					
						2020-06-19 14:40:20 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							684cb45e1a 
							
						 
					 
					
						
						
							
							tweak debug levels, document some guidelines  
						
						 
						
						... 
						
						
						
						Beginnings of a project-wide policy for what output to show at
each debug level, for now. Later we'll want more flexibility,
eg filtering by topic. 
						
					 
					
						2020-06-14 17:17:09 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6e36ede9aa 
							
						 
					 
					
						
						
							
							;valuation: refactor  
						
						 
						
						
						
					 
					
						2020-06-14 15:48:16 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c8773854f0 
							
						 
					 
					
						
						
							
							;doc: valuation: more cleanup  
						
						 
						
						
						
					 
					
						2020-06-13 12:41:02 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4bf4c62181 
							
						 
					 
					
						
						
							
							journal: default valuation commodity from P only, take 2 ( #1239 ,  #1253 )  
						
						 
						
						
						
					 
					
						2020-06-13 09:50:36 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							03b4b2dedc 
							
						 
					 
					
						
						
							
							journal: default valuation commodity comes from P directives only ( #1239 ,  #1253 )  
						
						 
						
						
						
					 
					
						2020-06-12 21:25:38 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c59565ca5b 
							
						 
					 
					
						
						
							
							;fix Json.hs with old GHCs  
						
						 
						
						
						
					 
					
						2020-06-06 15:33:04 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b50c3a694c 
							
						 
					 
					
						
						
							
							;lib: note issue with Journal's JSON  
						
						 
						
						
						
					 
					
						2020-06-06 12:54:58 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b86ced5ee9 
							
						 
					 
					
						
						
							
							lib: replace jsonPrettyText with toJsonText in Hledger.Data.Json  
						
						 
						
						
						
					 
					
						2020-06-06 12:54:58 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							be25fe360e 
							
						 
					 
					
						
						
							
							lib: Parser now accepts .. as a synonym for to in date ranges.  
						
						 
						
						
						
					 
					
						2020-06-04 19:30:42 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							2f71da8838 
							
						 
					 
					
						
						
							
							lib: More consistent period formatting.  
						
						 
						
						
						
					 
					
						2020-06-04 19:30:42 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							cbf4029b8b 
							
						 
					 
					
						
						
							
							lib: test for issue with sign checking code + fix  
						
						 
						
						
						
					 
					
						2020-06-01 15:17:15 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							97f2235bca 
							
						 
					 
					
						
						
							
							;lib: refactor amount cost functions  
						
						 
						
						... 
						
						
						
						Rename costOfAmount -> amountCost, costOfMixedAmount -> mixedAmountCost,
drop amountToCost, mixedAmountToCost. 
						
					 
					
						2020-05-31 15:48:08 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							660ba7e1d9 
							
						 
					 
					
						
						
							
							lib: clarify zero-checking function names  
						
						 
						
						... 
						
						
						
						isZeroAmount                -> amountLooksZero
isReallyZeroAmount          -> amountIsZero
isZeroMixedAmount           -> mixedAmountLooksZero
isReallyZeroMixedAmount     -> mixedAmountIsZero
isReallyZeroMixedAmountCost dropped 
						
					 
					
						2020-05-29 18:57:22 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1087e790cf 
							
						 
					 
					
						
						
							
							;lib: refactor transactionCheckBalanced  
						
						 
						
						
						
					 
					
						2020-05-29 17:57:10 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							7bcc205622 
							
						 
					 
					
						
						
							
							lib: drop transactionPostingBalances  
						
						 
						
						
						
					 
					
						2020-05-29 17:33:53 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0a5fa33f9d 
							
						 
					 
					
						
						
							
							split more long transaction balancing errors into lines; refactor  
						
						 
						
						
						
					 
					
						2020-05-29 16:31:15 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							924ec1c98d 
							
						 
					 
					
						
						
							
							journal: clearer transaction balancing errors; refactor  
						
						 
						
						... 
						
						
						
						As mentioned by netvor on IRC, the unbalanced transaction error was
not too clear when postings all have the same sign.
Some other wording has been clarified, and the main error message is
now shown on multiple lines for readability (at the cost of
predictability/grepability..)
There's also a probably unnoticeable change: selecting which parts of
the error to show is now based on display precisions (reusing the
balanced check logic), rather than original precisions. 
						
					 
					
						2020-05-29 16:07:58 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							61264cfdc0 
							
						 
					 
					
						
						
							
							lib: isNegativeMixedAmount handles all-negative multi-comm. amounts  
						
						 
						
						
						
					 
					
						2020-05-29 13:07:02 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e6f9f09b41 
							
						 
					 
					
						
						
							
							;lib: refactor, consolidate, add transactionCheckBalanced  
						
						 
						
						
						
					 
					
						2020-05-29 11:57:48 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e1ddfc3a1b 
							
						 
					 
					
						
						
							
							lib: also infer market prices from transactions, like Ledger ( #1239 ) (WIP)  
						
						 
						
						
						
					 
					
						2020-05-25 17:45:31 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							10f8dc84a5 
							
						 
					 
					
						
						
							
							period expressions: allow "until", like Ledger (synonym for "to")  
						
						 
						
						
						
					 
					
						2020-04-08 14:26:38 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pavan Rikhi 
							
						 
					 
					
						
						
						
						
							
						
						
							f574b782fa 
							
						 
					 
					
						
						
							
							Fix Documentation for journalExpenseAccountQuery  
						
						 
						
						
						
					 
					
						2020-03-22 17:17:06 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							21fdcec6b7 
							
						 
					 
					
						
						
							
							journal: inclusive balance assignments now work ( #1207 )  
						
						 
						
						
						
					 
					
						2020-03-05 13:38:19 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f18c74fff7 
							
						 
					 
					
						
						
							
							;journal: a test for inclusive balance assignment, disabled ( #1207 )  
						
						 
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2020-03-05 11:19:04 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5ed6fe586a 
							
						 
					 
					
						
						
							
							;refactor transaction balancing/checking ( #1207 )  
						
						 
						
						
						
					 
					
						2020-03-05 11:18:59 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							e0dde6fe57 
							
						 
					 
					
						
						
							
							lib: Remove non-law-abiding Monoid instance for Journal.  
						
						 
						
						
						
					 
					
						2020-03-02 12:45:30 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							702c958487 
							
						 
					 
					
						
						
							
							lib: Replace some utility functions with library functions.  
						
						 
						
						
						
					 
					
						2020-03-02 12:45:30 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							04fb132496 
							
						 
					 
					
						
						
							
							;doc: draft changelogs  
						
						 
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2020-03-01 16:44:28 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							43c55bf4ea 
							
						 
					 
					
						
						
							
							;lib: add YYYY.MM.DD to parsedate/parsedateM helpers  
						
						 
						
						... 
						
						
						
						For a bit more consistency with simple dates. And document better. 
						
					 
					
						2020-02-27 10:57:55 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a33a9d61c2 
							
						 
					 
					
						
						
							
							json: use a simpler, more consumable number representation ( #1195 )  
						
						 
						
						... 
						
						
						
						Amounts in JSON are now rendered as simple Numbers with up to 10
decimal places, instead of Decimal objects which would in some cases
have 255 digits, too many for most JSON parsers to handle.
A provisional fix, see the comment in Json.hs for more detail. 
						
					 
					
						2020-02-26 11:48:09 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							7f16d23898 
							
						 
					 
					
						
						
							
							;refactor: extract --value=then error message  
						
						 
						
						
						
					 
					
						2020-02-24 17:49:53 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							86ffef1057 
							
						 
					 
					
						
						
							
							;doc:journal: edits, Amount display format -> Amount display style  ( #1187 )  
						
						 
						
						... 
						
						
						
						Drop occasional use of "display format", prefer "display style".
[ci skip] 
						
					 
					
						2020-02-11 10:23:52 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e4a0bdff8d 
							
						 
					 
					
						
						
							
							journal: default commodity (D) limits display precision too ( #1187 )  
						
						 
						
						... 
						
						
						
						D directives are now fully equivalent to commodity directives for
setting a commodity's display style. (Previously it was equivalent to
a posting amount, so it couldn't limit the number of decimal places.)
When both kinds of directive exist, commodity directives take precedence.
When there are multiple D directives in the journal, only the last one
affects display style. 
						
					 
					
						2020-02-11 09:47:26 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1741b607e2 
							
						 
					 
					
						
						
							
							lib: more cleanup of amount canonicalisation helpers ( #1187 )  
						
						 
						
						... 
						
						
						
						Stop exporting journalAmounts, overJournalAmounts, traverseJournalAmounts.
Rename journalAmounts helper to journalStyleInfluencingAmounts.
D directives are now a little better at influencing amount
canonicalisation, eg in the updated test case. 
						
					 
					
						2020-02-11 09:23:04 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							926b01f2eb 
							
						 
					 
					
						
						
							
							;lib: try to clarify this amount traversing stuff ( #1187 )  
						
						 
						
						
						
					 
					
						2020-02-11 08:34:22 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							aa96b41efe 
							
						 
					 
					
						
						
							
							print, register: add --value=then, valuing at each posting's date  
						
						 
						
						... 
						
						
						
						Currently this will give an error with other kinds of report. 
						
					 
					
						2020-02-10 08:20:39 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							50acfc9119 
							
						 
					 
					
						
						
							
							Fix documentation, make ISO date format standard in some places  
						
						 
						
						
						
					 
					
						2020-02-09 07:26:54 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e0a46a6523 
							
						 
					 
					
						
						
							
							;lib: update doctests for ISO 8601 date output  
						
						 
						
						... 
						
						
						
						[ci skip] 
						
					 
					
						2020-02-03 08:03:44 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5f7ae2ced6 
							
						 
					 
					
						
						
							
							;lib: Amount: export mixedAmountStripPrices  
						
						 
						
						
						
					 
					
						2020-01-22 11:57:42 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							64546cd54a 
							
						 
					 
					
						
						
							
							lib: export mapMixedAmount  
						
						 
						
						
						
					 
					
						2020-01-20 18:01:33 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Jakob Schöttl 
							
						 
					 
					
						
						
						
						
							
						
						
							c7a88b50fb 
							
						 
					 
					
						
						
							
							Fix timeclock format parsing  
						
						 
						
						... 
						
						
						
						Fix presumably copy-paste errors
timeclock format has only timeclock lines or empty/comment lines
Update test format to v3, add new tests
Throw error on unexpected clock codes in timeclock format
Fix missing case in pattern matching 
						
					 
					
						2020-01-12 13:17:36 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brian Wignall 
							
						 
					 
					
						
						
						
						
							
						
						
							ab12ff916f 
							
						 
					 
					
						
						
							
							Update "showPeriod" to use yyyy-mm-dd formatting  
						
						 
						
						
						
					 
					
						2020-01-07 15:58:54 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brian Wignall 
							
						 
					 
					
						
						
						
						
							
						
						
							00eb0b3c8f 
							
						 
					 
					
						
						
							
							Make "stack test" pass again  
						
						 
						
						
						
					 
					
						2020-01-07 15:58:22 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brian Wignall 
							
						 
					 
					
						
						
						
						
							
						
						
							35481a665b 
							
						 
					 
					
						
						
							
							Change Date output to yyyy-mm-dd  
						
						 
						
						
						
					 
					
						2020-01-07 15:58:22 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							74778efcf5 
							
						 
					 
					
						
						
							
							Use nubSort instead of nub . sort.  
						
						 
						
						
						
					 
					
						2020-01-04 08:31:10 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							38904372b2 
							
						 
					 
					
						
						
							
							Calculate MultiReportBalance columns more efficiently.  
						
						 
						
						... 
						
						
						
						Only calculate posting date once for each posting, and calculate their
columns instead of checking each DateSpan separately. 
						
					 
					
						2020-01-03 16:11:46 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0b734be445 
							
						 
					 
					
						
						
							
							; silence safe 0.3.18's deprecation warnings for now  
						
						 
						
						... 
						
						
						
						(max|min)imum(By)?Def are being replaced by (max|min)imumBound(By)?
but the old functions have the semantics I want and
I don't understand the new ones yet.
This can hide other deprecation warnings in this file,
and presumably the old functions will be removed later,
so this is temporary.
Cf https://github.com/ndmitchell/safe/issues/26  
						
					 
					
						2019-12-28 15:52:32 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c5537cedb5 
							
						 
					 
					
						
						
							
							;lib: drop more unnecessary toJSON calls  
						
						 
						
						
						
					 
					
						2019-12-27 15:49:42 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							7fa7ccc033 
							
						 
					 
					
						
						
							
							ToJSON instances for all (?) remaining data types, up to Ledger  
						
						 
						
						
						
					 
					
						2019-12-16 17:17:00 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							46d516e7a3 
							
						 
					 
					
						
						
							
							move JSON instances from hledger-web to hledger-lib  
						
						 
						
						
						
					 
					
						2019-12-16 17:17:00 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c759c9b3de 
							
						 
					 
					
						
						
							
							;lib: fix some more warnings in Transaction  
						
						 
						
						
						
					 
					
						2019-12-09 06:08:03 -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 
							
						 
					 
					
						
						
						
						
							
						
						
							279e9624ed 
							
						 
					 
					
						
						
							
							;lib: clarify docs for setFullPrecision, setNaturalPrecision  
						
						 
						
						
						
					 
					
						2019-11-30 16:56:45 -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  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							13a3542464 
							
						 
					 
					
						
						
							
							tests: port all unit tests to tasty, first cut ( #1090 )  
						
						 
						
						... 
						
						
						
						easytest is not actively maintained and requires an old version of
hedgehog which does not support base-compat 0.11 & ghc 8.8.
This is still using the old easytest helpers, and not displaying test
names properly. 
						
					 
					
						2019-11-27 12:43:43 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3f0892556d 
							
						 
					 
					
						
						
							
							;lib: clarify choiceopt doc  
						
						 
						
						
						
					 
					
						2019-11-23 13:03:26 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Mykola Orliuk 
							
						 
					 
					
						
						
						
						
							
						
						
							2a36ac0d62 
							
						 
					 
					
						
						
							
							;lib: fix doctest for RawOptions  
						
						 
						
						
						
					 
					
						2019-11-19 20:43:19 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Mykola Orliuk 
							
						 
					 
					
						
						
						
						
							
						
						
							5287fe671b 
							
						 
					 
					
						
						
							
							;all: hide RawOpts internals  
						
						 
						
						... 
						
						
						
						This way we can ensure we always use only functions from RawOptions. 
						
					 
					
						2019-11-18 17:38:39 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							68b1cacf0f 
							
						 
					 
					
						
						
							
							lib: refactor, prepare to drop showTransactionUnelided functionality  
						
						 
						
						... 
						
						
						
						It seems we don't use it at all, and ony says it's not robust with
prices either.
Merge remote-tracking branch 'ony/chores/drop-elide-in-showTransaction' 
						
					 
					
						2019-11-18 17:27:30 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Michael Kainer 
							
						 
					 
					
						
						
						
						
							
						
						
							79ca4a767e 
							
						 
					 
					
						
						
							
							cli: Add -% to compound balance commands  
						
						 
						
						... 
						
						
						
						This commit introduces the commandline argument -%/--percent to show
percentages of the column's total instead of the absolute amounts for
each account in reports. The signs of the values are preserved.
This option is especially useful for the balance and incomestatement
commands.
If there are multiple commodities involved in a report hledger bails
with an error message. This can be avoided by using --cost. Also note
that if one uses -% with the balance command the chances are high that
all numbers are 0. This is due to the fact that by default balance sums
up to zero. If one wants to use -% in a meaningful way with balance one
has to add a query.
In order to keep the implementation as simple as possible --tree has no
influence over how the percentages are calculated, i.e., the percentages
always represent the fraction of the columns total. If one wants to know
the percentages relative to a parent account, one has to use a query to
narrow down the accounts. 
						
					 
					
						2019-11-18 17:10:59 -08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Mykola Orliuk 
							
						 
					 
					
						
						
						
						
							
						
						
							aca214b0ac 
							
						 
					 
					
						
						
							
							lib: drop amount elision in showing last posting  
						
						 
						
						... 
						
						
						
						This behavior is highly depends on journal. If we want to re-introduce
it we'd better re-consider how transaction entry can be "simplified".
I.e. besides dropping last amount we may drop prices that can be assumed
implicitly.
Note that there is no need to knit it into showTransaction since it
easily achievable with pre-processing (similar to implicit balances
etc). 
						
					 
					
						2019-11-16 12:53:07 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							312e772468 
							
						 
					 
					
						
						
							
							prices: style price amounts; always show full precision  
						
						 
						
						
						
					 
					
						2019-10-20 07:09:34 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b598f30a8a 
							
						 
					 
					
						
						
							
							;lib: styleAmountExceptPrecision  
						
						 
						
						
						
					 
					
						2019-10-20 07:08:45 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2e3b51c03f 
							
						 
					 
					
						
						
							
							;lib: journalConvertAmountsToCost -> journalToCost  
						
						 
						
						
						
					 
					
						2019-10-19 19:58:27 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							54e1caebf1 
							
						 
					 
					
						
						
							
							;lib: refactor journalConvertAmountsToCost  
						
						 
						
						
						
					 
					
						2019-10-19 19:53:05 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							905149df86 
							
						 
					 
					
						
						
							
							;lib: transaction valuation helpers  
						
						 
						
						
						
					 
					
						2019-10-19 19:41:21 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							de0a6b1e62 
							
						 
					 
					
						
						
							
							;lib: Transaction: as Map -> as M  
						
						 
						
						
						
					 
					
						2019-10-19 19:17:35 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Mykola Orliuk 
							
						 
					 
					
						
						
						
						
							
						
						
							78146978f4 
							
						 
					 
					
						
						
							
							;lib: store raw opts unquoted  
						
						 
						
						... 
						
						
						
						It looks like we only need quote when we build query and in some
messages.
Fixes  simonmichael/hledger#1079  
						
					 
					
						2019-10-19 14:44:08 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6dcddadd9f 
							
						 
					 
					
						
						
							
							;journal: in generated-transaction:/posting: tags, add a space before the value  
						
						 
						
						
						
					 
					
						2019-10-07 14:54:36 -10:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							16973ce296 
							
						 
					 
					
						
						
							
							;lib: fix journalInferCommodityStyles debug message  
						
						 
						
						
						
					 
					
						2019-09-27 18:51:37 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							58a313165c 
							
						 
					 
					
						
						
							
							;journal: infer amount styles more carefully, fix wrong output ( #1091 )  
						
						 
						
						... 
						
						
						
						Certain journal entries could trigger a bug where we displayed amounts
with the same character for digit group mark and decimal mark. Now if
a comma or period digit group mark is detected, that forces the
decimal mark to be the other character. 
						
					 
					
						2019-09-27 15:40:36 -10:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							9967ead4c5 
							
						 
					 
					
						
						
							
							;lib: let commodityStylesFromAmounts & co. return an error ( #793 ,  #1091 )  
						
						 
						
						... 
						
						
						
						And if they did, the stats command would now throw an error.
Changed:
journalApplyCommodityStyles
journalInferCommodityStyles
commodityStylesFromAmounts 
						
					 
					
						2019-09-27 15:09:39 -10:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							64f49a8c02 
							
						 
					 
					
						
						
							
							;doc: journal: rewrite Amounts; switch to "digit group mark" term ( #1091 )  
						
						 
						
						
						
					 
					
						2019-09-27 14:25:32 -10:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b754abc36b 
							
						 
					 
					
						
						
							
							;lib: commodityStylesFromAmounts: simplify, disable  #1091  test  
						
						 
						
						
						
					 
					
						2019-09-26 18:06:22 -10:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4884213a3e 
							
						 
					 
					
						
						
							
							;lib: commodityStylesFromAmounts: a failing unit test for  #1091  
						
						 
						
						
						
					 
					
						2019-09-25 23:08:00 -10:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							568cb32677 
							
						 
					 
					
						
						
							
							lib: more runPeriodicTransaction tests (lifted from  #1085  and spanIntervalIntersect)  
						
						 
						
						
						
					 
					
						2019-09-11 16:09:28 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							cf4029a5ed 
							
						 
					 
					
						
						
							
							lib: fix generation of periodic transactions with days/months/... repeat  
						
						 
						
						
						
					 
					
						2019-09-11 16:09:28 -07:00