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
		
	
			
		
			
				
	
	
		
			32 lines
		
	
	
		
			642 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			642 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # stack build plan using GHC 8.8.4
 | |
| 
 | |
| nix:
 | |
|   pure: false
 | |
|   packages: [perl gmp ncurses zlib]
 | |
| 
 | |
| resolver: lts-16.12
 | |
| 
 | |
| packages:
 | |
| - hledger-lib
 | |
| - hledger
 | |
| - hledger-ui
 | |
| - hledger-web
 | |
| 
 | |
| extra-deps:
 | |
| # for hledger-lib:
 | |
| - pretty-simple-4.0.0.0
 | |
| - prettyprinter-1.7.0
 | |
| # for hledger:
 | |
| # for hledger-ui:
 | |
| # for hledger-web:
 | |
| # for Shake.hs:
 | |
| 
 | |
| # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
 | |
| # apply-ghc-options: everything
 | |
| # rebuild-ghc-options: true
 | |
| # stack build --profile --ghc-options="-fno-prof-auto"
 | |
| 
 | |
| # tell GHC to write hie files, eg for weeder. Rumoured to be slow.
 | |
| # ghc-options:
 | |
| #   "$locals": -fwrite-ide-info
 |