title: Profiling builds with Stack
body: <p>How do I tell <code>stack</code> to build my executable and all its dependencies with <code>-prof</code>? </p>
  
  <p>Simply adding it to <code>ghc-options</code> in the <code>.cabal</code> file is not enough, because it only tries to build the executable with profiling enabled, which fails.</p>