<div dir="ltr"><div><div><div><div><div><div>> Would you verify that passing --ghc-options when configuring a package<br>> adds the options to 'ghc-options:' if present in the .cabal file?<br><br></div>With pleasure. I made a «dummy» program to verify that (files here [1]):<br>

<br></div>  1. A dummy `Main.hs` executable which uses an external library and also generates GHC warnings.<br></div>  2. A simple `test-ghc-opts.cabal` file which has a `ghc-options:` to display warnings<br></div>  3. A `build.sh` script which configures the program with a `ghc-options` to remove the [rpath] of dynamic linking.<br>

<br></div>If both the warnings are displayed and the [rpath] doesn't exist, it means that both ways of giving `ghc-options` are working side by side. It is the case on my computer! But I let you verify my scripts to be sure that I'm doing the test correctly.<br>

<br></div>[1] <a href="https://gist.github.com/StreakyCobra/0067d15fd74ebf8bf5e0">https://gist.github.com/StreakyCobra/0067d15fd74ebf8bf5e0</a><br><br>Kind regards,<br>Fabien<br><div><div><div><div><br><br></div></div></div>

</div></div>