Which -ghc-options should I use when using Haskell Stack?
<p>I'm confused about where I should be putting GHC compile options in Haskell Stack projects. From a review of the documentation, I think I need to use <code>ghc-options</code>, but <em>which one</em>? There are two:</p>

<ul>
<li><a href="http://docs.haskellstack.org/en/stable/yaml_configuration/#ghc-options" rel="nofollow">Stack's <code>ghc-options</code></a></li>
<li><a href="https://wiki.haskell.org/How_to_write_a_Haskell_program" rel="nofollow">Cabal's <code>ghc-options</code></a> (which it seems people just kind of use, but there's no actual documentation describing what it is ...)</li>
</ul>

<p>I thought specifying an option for the compiler would be straightforward, but this is mystifying me. What is the preferred/accepted/de-facto/? way to specify GHC options when using Stack to build a project?</p>