mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
I found that if I added this to my stack.yaml: ghc-options: $locals: -ddump-to-file -ddump-hi As specified in https://docs.haskellstack.org/en/stable/yaml_configuration/#ghc-options Then my build would fail to evaluate with: error: The option `packages."\$locals".package.identifier.name' is used but not defined. So to fix it, we filter out these special package globs in mkStackPkgSet. This commit also adds a regression test for that configuration option.
10 lines
178 B
YAML
10 lines
178 B
YAML
resolver: lts-14.13
|
|
|
|
packages:
|
|
- .
|
|
|
|
ghc-options:
|
|
test-ghc-options: -DTEST_GHC_OPTION
|
|
# See https://github.com/ndmitchell/weeder/issues/53
|
|
$locals: -ddump-to-file -ddump-hi
|