使用Stack构建Haskell程序时输出ddump-rule-firings

时间:2017-04-25 08:26:20

标签: haskell haskell-stack

在使用堆栈构建程序时,如何查看-ddump-rule-firings的输出?

我已在-ddump-rule-firings文件中将ghc-options添加到.cabal并运行stack clean; stack build -v。规则解雇(以及来自ghc的任何其他输出)未包含在stack的输出中。

正常的ghc输出似乎没有记录在.stack-work目录中的任何地方。

其他开发人员有encountered similar issues,但建议的更改(添加--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

1 个答案:

答案 0 :(得分:0)

我发现规则会在以下目录中触发转储

.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