2020-09-02 20:20:57 +03:00
|
|
|
# stack build plan using GHC 8.8.4
|
2019-11-29 00:43:54 +03:00
|
|
|
|
2020-03-02 02:01:37 +03:00
|
|
|
nix:
|
|
|
|
pure: false
|
|
|
|
packages: [perl gmp ncurses zlib]
|
|
|
|
|
2020-12-08 23:57:40 +03:00
|
|
|
resolver: lts-16.25
|
2019-11-29 00:43:54 +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:
|
2019-11-29 00:43:54 +03:00
|
|
|
# for hledger-lib:
|
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
|
|
|
- pretty-simple-4.0.0.0
|
|
|
|
- prettyprinter-1.7.0
|
2019-11-29 00:43:54 +03:00
|
|
|
# for hledger:
|
|
|
|
# for hledger-ui:
|
|
|
|
# for hledger-web:
|
2020-01-28 20:21:10 +03:00
|
|
|
# for Shake.hs:
|
2020-02-01 01:49:29 +03:00
|
|
|
|
|
|
|
# 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"
|
2020-03-16 21:18:04 +03:00
|
|
|
|
|
|
|
# tell GHC to write hie files, eg for weeder. Rumoured to be slow.
|
|
|
|
# ghc-options:
|
|
|
|
# "$locals": -fwrite-ide-info
|
2020-11-17 01:41:52 +03:00
|
|
|
|
|
|
|
# ghc-options:
|
|
|
|
# "$locals": -ddump-timings
|
|
|
|
# "$targets": -Werror
|
|
|
|
# "$everything": -O2
|
|
|
|
# some-package: -DSOME_CPP_FLAG
|
|
|
|
|