hledger/stack8.6.yaml
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

45 lines
1.1 KiB
YAML

# stack build plan using GHC 8.6.5
nix:
pure: false
packages: [perl gmp ncurses zlib]
resolver: lts-14.16
packages:
- hledger-lib
- hledger
- hledger-ui
- hledger-web
extra-deps:
- doctest-0.16.3
# for Shake.hs (regex doesn't support base-compat-0.11):
- regex-1.0.2.0@rev:1
# for testing base-compat 0.11 compatibility (mutually exclusive with the above):
# - aeson-1.4.6.0
# - aeson-compat-0.3.9
# - attoparsec-iso8601-1.0.1.0
# - base-compat-batteries-0.11.0
# - base-compat-0.11.0
# - http-api-data-0.4.1.1
# for hledger-lib:
- pretty-simple-4.0.0.0
- prettyprinter-1.7.0
# for hledger:
# for hledger-ui:
# for hledger-web:
# Workaround for https://github.com/commercialhaskell/stack/issues/3922
# Try dropping this.. after stack 2 has been out a while ? Or now ? How about now ?
#- haskell-src-exts-1.21.0
# Use at least 0.46 to work around https://github.com/simonmichael/hledger/issues/1039
# (hledger-web build failure with GHC 8.6 on Windows 7)
# Might also be fixed by using GHC 8.6.5+, mixed reports
#- unix-time-0.4.6
- wai-handler-launch-3.0.3.1
# - streaming-commons-0.2.1.2
# - network-2.7.0.0