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
		
	
			
		
			
				
	
	
		
			83 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # stack build plan using GHC 8.0.2
 | |
| 
 | |
| resolver: lts-9.21
 | |
| 
 | |
| packages:
 | |
| - hledger-lib
 | |
| - hledger
 | |
| - hledger-ui
 | |
| #- hledger-web  # disabled for now, can't find an install plan that works
 | |
| 
 | |
| extra-deps:
 | |
| # Many newer versions to allow using the latest base-compat.
 | |
| # This is just the first workable install plan I found.
 | |
| # Some of these were for hledger-api and can be removed,
 | |
| # some of them are for hledger-web.
 | |
| - aeson-1.3.1.1
 | |
| - aeson-compat-0.3.7.1
 | |
| - aeson-pretty-0.8.8
 | |
| - ansi-terminal-0.10.2
 | |
| - ansi-wl-pprint-0.6.9
 | |
| - attoparsec-0.13.2.2
 | |
| - attoparsec-iso8601-1.0.0.0
 | |
| - base-compat-0.10.1
 | |
| - base-compat-batteries-0.10.1
 | |
| - bifunctors-5.5.2
 | |
| - brick-0.23
 | |
| - cabal-doctest-1.0.8
 | |
| - cassava-megaparsec-2.0.0
 | |
| - conduit-1.3.2
 | |
| - conduit-extra-1.3.0
 | |
| - config-ini-0.2.3.0
 | |
| - criterion-1.4.1.0
 | |
| - Decimal-0.5.1
 | |
| - directory-1.3.2.2  # avoid hanging with windows symlinks https://github.com/simonmichael/hledger/issues/791
 | |
| - extra-1.6.17
 | |
| - fast-logger-2.4.17
 | |
| - fgl-5.5.4.0
 | |
| - fsnotify-0.3.0.1  # newer fsnotify has a different api and may be more robust
 | |
| - generics-sop-0.3.2.0
 | |
| - Glob-0.9.2
 | |
| - hashable-1.2.7.0
 | |
| - hashtables-1.2.3.1  # avoid no hashable instance for AccountName from doctests
 | |
| - http-client-0.5.8
 | |
| - http-media-0.7.1.2
 | |
| - http-types-0.12.1
 | |
| - insert-ordered-containers-0.2.1.0
 | |
| - lens-4.16.1
 | |
| - math-functions-0.3.3.0
 | |
| - megaparsec-7.0.1
 | |
| - microstache-1.0.1.1
 | |
| - mmorph-1.1.2
 | |
| - network-2.6.3.5
 | |
| - optparse-applicative-0.15.1.0
 | |
| - parser-combinators-1.0.0
 | |
| - persistent-template-2.5.4
 | |
| - process-1.4.3.0
 | |
| - scientific-0.3.6.2
 | |
| - servant-0.13.0.1
 | |
| - servant-server-0.13.0.1
 | |
| - servant-swagger-1.1.5
 | |
| - singleton-bool-0.1.4
 | |
| - statistics-0.14.0.2
 | |
| - streaming-commons-0.2.1.2
 | |
| - swagger2-2.2.2
 | |
| - tasty-1.2.3
 | |
| - tasty-hunit-0.10.0.2
 | |
| - text-1.2.3.0
 | |
| - typed-process-0.2.6.0
 | |
| - unix-time-0.4.7
 | |
| - unordered-containers-0.2.9.0
 | |
| - wai-extra-3.0.22.1
 | |
| - wai-handler-launch-3.0.3.1
 | |
| - wai-logger-2.3.5
 | |
| - warp-3.2.15
 | |
| - wcwidth-0.0.2
 | |
| - word-wrap-0.4.1
 | |
| - mono-traversable-1.0.12.0
 | |
| - resourcet-1.2.4
 | |
| - http-conduit-1.3.0
 | |
| - monad-logger-0.3.28
 | |
| - pretty-simple-4.0.0.0
 | |
| - prettyprinter-1.7.0
 |