When trying to pass in RTS options to GHC via ghc-options in stack.yaml, the RTS options aren't properly threaded through.
Steps to reproduce
- Create a new project via
stack new
- Add the following to
stack.yaml
ghc-options:
"$locals": +RTS -s -RTS
- Run command
stack build.
Expected
The RTS options are passed to GHC, and the statistics are printed out while compiling.
Actual
Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: unknown RTS option: --ghc-options
Stack version
$ stack --version
Version 2.1.3 x86_64
Method of installation
- Official binary, downloaded from stackage.org or fpcomplete's package repository
When trying to pass in RTS options to GHC via
ghc-optionsinstack.yaml, the RTS options aren't properly threaded through.Steps to reproduce
stack newstack.yamlstack build.Expected
The RTS options are passed to GHC, and the statistics are printed out while compiling.
Actual
Stack version
Method of installation