这些 GHC 选项如何进入我的堆栈构建?

How are these GHC options getting into my stack build?

我在 "stack build foo" 的末尾看到以下内容:

Progress: 1/2
-- While building package foo-0.1.0.0 using:
[path-to-GHC] --builddir=[path-to-stack-work-area] build lib:foo
--ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1

而且我无法弄清楚这些选项:-ddump-hi-ddump-to-file 是如何得到的进入我的堆栈构建流程。我在以下位置找不到它们:

有人知道他们来自哪里吗?

它们是由堆栈添加的,原因是堆栈可以知道模板 Haskell 文件依赖性,因此可以知道何时需要重新编译。