commercialhaskell / commercialhaskell/stack
Inconsistent --ghc-options effect
Open
resolution: upstream issue
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
`--ghc-options` overrides `ghc-options` in component configuration but doesn't override `OPTIONS_GHC` in the module.
When I want to test my package, I run `stack test --pedantic`.
When I want to disable some warnings for a single module, I put OPTIONS_GHC in it.
When I want to disable some warnings for a single component, I can't do this! Component configuration can't override command-line options!
```
$ stack --version
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e (4861 commits) x86_64 hpack-0.17.1
```
Contributor guide
Assessment
This issue has not been assessed yet.