2017-04-25 36 views
0

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

我已经在我的.cabal文件添加到-ddump-rule-firingsghc-options运行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 

回答

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