Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							32b42a6c80 
							
						 
					 
					
						
						
							
							;journal: another test for  #1532  
						
						
						
					 
					
						2021-04-21 08:09:36 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							bf7255402c 
							
						 
					 
					
						
						
							
							;journal: add, renumber commodity parse tests ( #1532 )  
						
						
						
					 
					
						2021-04-20 10:37:31 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f58fcd95ab 
							
						 
					 
					
						
						
							
							;journal: tests demonstrating commodity parse errors ( #1532 )  
						
						
						
					 
					
						2021-04-20 09:55:11 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a8c6a915e4 
							
						 
					 
					
						
						
							
							examples: csv: kraken  
						
						
						
					 
					
						2021-04-19 17:22:04 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8cf193547e 
							
						 
					 
					
						
						
							
							;bal: doc: balance features: fix --valuechange link  
						
						
						
					 
					
						2021-04-19 16:17:36 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							39623934c3 
							
						 
					 
					
						
						
							
							;doc: cli: a note about redirecting debug output  
						
						
						
					 
					
						2021-04-17 20:18:05 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							483fa9682e 
							
						 
					 
					
						
						
							
							cli: ANSI color is now also disabled by -o/--output-file ( #1533 )  
						
						... 
						
						
						
						ANSI color on stdout (not stderr) is now disabled if the
-o/--output-file option is detected (and its value is not "-").
Added outputFileOption, and more advice in comments. 
						
					 
					
						2021-04-17 16:51:08 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							fe846a0c7f 
							
						 
					 
					
						
						
							
							;lib: comments  
						
						
						
					 
					
						2021-04-17 16:06:20 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1afb84c95d 
							
						 
					 
					
						
						
							
							lib: outputFileFromOpts now returns a maybe; cleanups  
						
						
						
					 
					
						2021-04-17 14:51:24 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4b5ad69eb1 
							
						 
					 
					
						
						
							
							;doc: declaring commodities: better link  
						
						
						
					 
					
						2021-04-16 12:19:57 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ea812f8f34 
							
						 
					 
					
						
						
							
							;doc: commodity display style: correction  
						
						
						
					 
					
						2021-04-16 12:15:52 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							659aeef56f 
							
						 
					 
					
						
						
							
							;doc: commodity display style: correction  
						
						
						
					 
					
						2021-04-16 12:13:28 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							949c3925e5 
							
						 
					 
					
						
						
							
							;doc: add Commodity section, update Amounts & Declaring Commodities ( #1532 )  
						
						
						
					 
					
						2021-04-16 12:00:00 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a335c5ad21 
							
						 
					 
					
						
						
							
							doc: journal: declaring commodities: mention double quotes ( #1532 )  
						
						
						
					 
					
						2021-04-16 09:10:26 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							dd5773253b 
							
						 
					 
					
						
						
							
							ui: For account screen, if the accounts and amounts are too wide, allocate space proportionally.  
						
						
						
					 
					
						2021-04-14 14:18:24 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							203b12bfd9 
							
						 
					 
					
						
						
							
							ui: In account screen, elide amounts which go past the specified width.  
						
						... 
						
						
						
						Also leave at least 15 spaces width for account names. 
						
					 
					
						2021-04-14 14:18:24 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							21a49b9479 
							
						 
					 
					
						
						
							
							;lib: note caveats with useColor*  
						
						
						
					 
					
						2021-04-14 06:23:21 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6298722ade 
							
						 
					 
					
						
						
							
							lib: debug output checks for color support on stderr, not stdout  
						
						... 
						
						
						
						This is more accurate.
useColor is replaced by useColorOnStdout, useColorOnStderr. 
						
					 
					
						2021-04-14 06:23:21 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2b04b76448 
							
						 
					 
					
						
						
							
							lib: debug output now respects --color/NO_COLOR/ANSI support  
						
						... 
						
						
						
						Debug output now selects color or monochrome in the same way as normal
output. 
						
					 
					
						2021-04-14 06:23:21 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5e57cfb43e 
							
						 
					 
					
						
						
							
							lib: useColor, colorOption helpers usable anywhere  
						
						
						
					 
					
						2021-04-14 06:23:21 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6af7a32076 
							
						 
					 
					
						
						
							
							examples/csv: pooltool ada rewards rules  
						
						
						
					 
					
						2021-04-14 06:08:55 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0f4e462ae7 
							
						 
					 
					
						
						
							
							add a Show instance for AmountDisplayOpts, WideBuilder  
						
						... 
						
						
						
						For debug logging. 
						
					 
					
						2021-04-13 17:19:22 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							28fd7c65f2 
							
						 
					 
					
						
						
							
							lib: When displaying amounts on a single line, always display at least one amount, even if that would exceed the requested maximum width. Addresses  #1526 .  
						
						
						
					 
					
						2021-04-13 15:29:58 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f5121129ec 
							
						 
					 
					
						
						
							
							timeclock: print shows timeclock amounts with just 2 decimals, like pre-1.21 ( #1527 )  
						
						
						
					 
					
						2021-04-12 18:40:33 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							25322e489e 
							
						 
					 
					
						
						
							
							ui: add tests for query filtering ( #1523 )  
						
						
						
					 
					
						2021-04-12 12:58:51 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							bd41d1bd11 
							
						 
					 
					
						
						
							
							ui: tests: clean up, update for  #1468  
						
						
						
					 
					
						2021-04-12 12:47:50 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							dbe7ef0157 
							
						 
					 
					
						
						
							
							ui: setFilter: note error-ignoring behaviour  
						
						
						
					 
					
						2021-04-12 12:06:11 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b13df845c0 
							
						 
					 
					
						
						
							
							ui: register: fix queries, broken in 1.21 ( #1523 )  
						
						
						
					 
					
						2021-04-12 12:05:35 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							493ed14629 
							
						 
					 
					
						
						
							
							lib,test: Make sure historical postings have prices stripped if necessary in PostingsReport (see issue  #1522 ).  
						
						
						
					 
					
						2021-04-11 18:31:30 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							f6feef7f80 
							
						 
					 
					
						
						
							
							lib,cli: Strip prices in MultiBalanceReport and PostingsReport whenever  
						
						... 
						
						
						
						we know we won't need them.
Knowing whether we need them is accomplished by pulling the "show-costs"
option used by the Close command up into ReportOpts. 
						
					 
					
						2021-04-11 18:31:30 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							b7a2479186 
							
						 
					 
					
						
						
							
							lib: Use uniform naming for stripping prices.  
						
						... 
						
						
						
						Creates a new function amountStripPrices, and renames removePrices to
postingStripPrices. 
						
					 
					
						2021-04-11 18:31:30 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							42d7009fef 
							
						 
					 
					
						
						
							
							test: Alter valuation tests to better distinguish between costing and  
						
						... 
						
						
						
						valuation. Replaces a redundant test with one which tests both costing
and valuation simultaneously. 
						
					 
					
						2021-04-11 18:06:04 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							278153effa 
							
						 
					 
					
						
						
							
							lib: Add more efficient toEncoding for custom ToJSON declarations.  
						
						
						
					 
					
						2021-04-10 17:52:33 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							a529207ae7 
							
						 
					 
					
						
						
							
							lib: Do not round Decimal before applying JSON representation if  
						
						... 
						
						
						
						existing representation is small enough.
Previously the JSON representation of Decimal was rounded to 10 points
of precision before serialising. This sometimes results in an
unnecessary increase of precision. 
						
					 
					
						2021-04-10 17:52:33 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							55772cbd9b 
							
						 
					 
					
						
						
							
							stack config for testing with GHC 9.0, WIP ( #1503 )  
						
						
						
					 
					
						2021-04-06 07:59:11 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4578d5d329 
							
						 
					 
					
						
						
							
							ui: work around ghc 9.0 build failure ( #1503 )  
						
						... 
						
						
						
						Also remove obsolete shebang line. 
						
					 
					
						2021-04-06 07:45:49 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							eb2da22f63 
							
						 
					 
					
						
						
							
							;update cabal files  
						
						
						
					 
					
						2021-04-04 08:03:57 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ba1e91c302 
							
						 
					 
					
						
						
							
							drop support for GHC 8.0  
						
						... 
						
						
						
						Prior to this commit,
- hledger still builds with GHC 8.0
- hledger-ui does if you use the build plan specified by stack8.0.yaml,
  but you are likely to hit problems if you let cabal pick one
  (https://github.com/jtdaugherty/vty/issues/198  and others)
- hledger-web might, if you could find the right build plan
The hassles are enough and GHC 8.0 is old enough (first released in
2016) that I'm letting it go; 8.2 is the new minimum version for all
hledger packages.
This allows a bunch of cleanups to conditional imports, which I leave
for later.
Also, updated the tested-with minor versions. 
						
					 
					
						2021-04-04 07:54:22 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8d7fef4f6b 
							
						 
					 
					
						
						
							
							stack: fix stack8.0.yaml ( #1514 )  
						
						
						
					 
					
						2021-04-03 21:10:57 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							edbb713cf8 
							
						 
					 
					
						
						
							
							lib,cli: Fix ledgerDateSpan, so that in takes transaction dates into account.  
						
						
						
					 
					
						2021-04-03 13:54:23 -10:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							5fbb67b893 
							
						 
					 
					
						
						
							
							lib,cli: Move reportPeriodName to Hledger.Reports.ReportOptions, use it  
						
						... 
						
						
						
						for HTML and CSV output for compound balance reports. 
						
					 
					
						2021-04-03 13:43:37 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d0940bf8ce 
							
						 
					 
					
						
						
							
							;update cabal files  
						
						
						
					 
					
						2021-03-29 08:19:54 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							4e644840bc 
							
						 
					 
					
						
						
							
							lib, etc: add now-required lower bound on containers ( #1514 )  
						
						
						
					 
					
						2021-03-29 08:19:28 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							5db75c39df 
							
						 
					 
					
						
						
							
							bal: keep csv column and row labels consistently lower case  
						
						... 
						
						
						
						It was reported on #hledger that bal -O csv capitalises "account"
differently for single and multi-period reports. All lower case seems
to be the most common, so I have dropped the capitalisation. Also
the trailing colon from --transpose's "total:". 
						
					 
					
						2021-03-29 07:50:43 -07:00 
						 
				 
			
				
					
						
							
							
								Eric Mertens 
							
						 
					 
					
						
						
						
						
							
						
						
							03f06128dc 
							
						 
					 
					
						
						
							
							Add a whitespace csv test  
						
						
						
					 
					
						2021-03-26 16:39:24 -07:00 
						 
				 
			
				
					
						
							
							
								Eric Mertens 
							
						 
					 
					
						
						
						
						
							
						
						
							48d558fc7a 
							
						 
					 
					
						
						
							
							Tolerate spaces in amount fields in CSV files  
						
						
						
					 
					
						2021-03-26 16:39:24 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							b6e20dea13 
							
						 
					 
					
						
						
							
							lib,test: Simplify the JSON representation of AmountPrecision.  
						
						... 
						
						
						
						It now uses the same JSON representation as Maybe Word8. This means that
the JSON serialisation is now broadly compatible with that used before the
commit f6fa76bba7 
						
					 
					
						2021-03-25 15:47:34 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							eab66de2ca 
							
						 
					 
					
						
						
							
							;cli: doc: commodity, D directive updates  
						
						
						
					 
					
						2021-03-25 15:26:28 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							4cb9dfb5b8 
							
						 
					 
					
						
						
							
							lib: Properly escape quotes in csv output.  
						
						
						
					 
					
						2021-03-25 09:41:42 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Morgan 
							
						 
					 
					
						
						
						
						
							
						
						
							4609e79f2c 
							
						 
					 
					
						
						
							
							lib,cli,ui,web: A number of AccountName and Journal functions which are  
						
						... 
						
						
						
						supposed to produce unique sorted use Sets internally to be slightly
more efficient. There is also a new function journalCommodities. 
						
					 
					
						2021-03-23 11:26:30 -07:00