ddump规则在使用堆栈构建Haskell程序时触发输出

ddump规则在使用堆栈构建Haskell程序时触发输出,haskell,haskell-stack,Haskell,Haskell Stack,在使用堆栈构建程序时,如何查看-ddump规则触发的输出 我已将-ddump规则触发添加到我的.cabal文件中的ghc选项,并运行堆栈清理;堆栈构建-v。规则触发(以及ghc的任何其他输出)不包括在堆栈的输出中 正常ghc输出似乎没有记录在.stack work目录中的任何位置 其他开发人员也有,但提议的更改(添加--dump logs选项)似乎没有实现: >stack build --dump-logs Invalid option `--dump-logs' Usage: sta

在使用堆栈构建程序时,如何查看
-ddump规则触发的输出

我已将
-ddump规则触发
添加到我的
.cabal
文件中的
ghc选项
,并运行
堆栈清理;堆栈构建-v
。规则触发(以及ghc的任何其他输出)不包括在
堆栈的输出中

正常ghc输出似乎没有记录在
.stack work
目录中的任何位置


其他开发人员也有,但提议的更改(添加
--dump logs
选项)似乎没有实现:

>stack build --dump-logs
Invalid option `--dump-logs'

Usage: stack build [TARGET] [--dry-run] [--pedantic] [--fast]
                   [--ghc-options OPTION] [--flag PACKAGE:[-]FLAG]
                   ([--dependencies-only] | [--only-snapshot] |
                   [--only-dependencies]) ([--file-watch] | [--file-watch-poll])
                   [--exec CMD [ARGS]] [--only-configure] [--trace] [--profile]
                   [--[no-]library-profiling] [--[no-]executable-profiling]
                   [--[no-]haddock] [--haddock-arguments HADDOCK_ARGS]
                   [--[no-]open] [--[no-]haddock-deps] [--[no-]copy-bins]
                   [--[no-]prefetch] [--[no-]keep-going] [--[no-]force-dirty]
                   [--[no-]test] [--[no-]rerun-tests]
                   [--test-arguments TEST_ARGS] [--coverage] [--no-run-tests]
                   [--[no-]bench] [--benchmark-arguments BENCH_ARGS]
                   [--no-run-benchmarks] [--[no-]reconfigure]
                   [--[no-]cabal-verbose] [--[no-]split-objs] [--help]
  Build the package(s) in this directory/configuration

我在如下目录中找到了触发转储的规则

.stack-work\dist\ca59d0ab\build\src\Lib.dump-rule-firings
.stack-work\dist\ca59d0ab\build\iterate-strict-exe\iterate-strict-exe-tmp\app\Main.dump-rule-firings