ghc option "-ddump-splices" is cached and ignored in subsequent calls to "cabal build"
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Description**
The ghc option -ddump-splices is cached and subsequently ignored.
i.e. in a clean project, `cabal build --ghc-options=-ddump-splices` will enable the option for all subsequent calls to `cabal build`, whether or not the option is specified.
Likewise, an initial `cabal build` will cause later invocations of `cabal build --ghc-options=-ddump-splices` to ignore the option and continue to not dump splices.
**To Reproduce**
*(Sorry, don't have an easy reproducer at hand, though I think it should be easy to create one)*
**Expected behavior**
I would expect -ddump-splices to be treated as something like a verbosity flag. It should only affect the current run. It shouldn't affect recompilation: compiled things should stay compiled.
**System information**
- NixOS 23.05
- cabal 3.10.1.0
- ghc 9.2.8
Contributor guide
Assessment
This issue has not been assessed yet.