2020-11-11 23:52:44 +03:00
|
|
|
# stack build plan using GHC 8.10.2
|
2019-12-15 04:21:58 +03:00
|
|
|
|
2020-03-02 02:01:37 +03:00
|
|
|
nix:
|
|
|
|
pure: false
|
|
|
|
packages: [perl gmp ncurses zlib]
|
|
|
|
|
2020-11-11 23:52:44 +03:00
|
|
|
resolver: nightly-2020-11-11
|
2019-12-15 04:21:58 +03:00
|
|
|
|
|
|
|
packages:
|
|
|
|
- hledger-lib
|
|
|
|
- hledger
|
|
|
|
- hledger-ui
|
|
|
|
- hledger-web
|
|
|
|
|
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 18:08:29 +03:00
|
|
|
extra-deps:
|
|
|
|
- pretty-simple-4.0.0.0
|
|
|
|
- prettyprinter-1.7.0
|
2020-11-11 23:52:44 +03:00
|
|
|
- prettyprinter-ansi-terminal-1.1.2
|