Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于开发目的,使用 Stack 的构建时间通常太长 - 有时需要花费数小时来构建项目。如何在开发过程中禁用Stack 上的所有优化,只为生产构建重新启用它们?
是的,正如 epsilonhalbe 指出的那样,--ghc-options -O0或者在 stack.yaml 中类似
--ghc-options -O0