You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using stack installed with --git on Windows 10 64bit, version:
Version 1.6.0, Git revision 46121be1b96465f1164e3f84cafa19c7369da9cc x86_64 hpack-0.18.1
Given stack-bug.zip, that defines in the stack.yaml:
ghc-options:
$locals: -bob
foo: -beep
When compiling foo I expect the flag -bob to go first, followed by -beep, so that (using more standard examples) I can turn on -Werror for all local packages, but then selectively turn it off with -Wwarn for just the package foo. However, the error message shows that -bob occurs after -beep, and thus cannot be overridden for a specific package. This change is important in large multi-cabal-project stack projects. The error message reads:
The order was: specific, $targets, $locals, *
The order now is: *, $locals, $targets, specific
I figured it made sense for targets flags to come after locals, since it is
often a subset.
The order was: specific, $targets, $locals, $everything
The order now is: $everything, $locals, $targets, specific
I figured it made sense for targets flags to come after locals, since it is
often a subset.
Using
stack
installed with--git
on Windows 10 64bit, version:Given stack-bug.zip, that defines in the
stack.yaml
:When compiling
foo
I expect the flag-bob
to go first, followed by-beep
, so that (using more standard examples) I can turn on-Werror
for all local packages, but then selectively turn it off with-Wwarn
for just the packagefoo
. However, the error message shows that-bob
occurs after-beep
, and thus cannot be overridden for a specific package. This change is important in large multi-cabal-project stack projects. The error message reads:The text was updated successfully, but these errors were encountered: