Haskell 通过cabal中的可执行文件分析库

Haskell 通过cabal中的可执行文件分析库,haskell,profiling,cabal,Haskell,Profiling,Cabal,愚蠢的问题。我有一个cabal文件,其中包含一个库和一个可执行文件,我想用它来分析库,但我无法从我的库中查看成本中心(尽管我从其他模块中看到了一些,如GHC.IO.Encoding) 这是我的阴谋集团文件的简化版本 flag dev default: False manual: True library exposed-modules: Foo ghc-options: -Wall ghc-prof-options: -fprof-auto

愚蠢的问题。我有一个cabal文件,其中包含一个
和一个
可执行文件
,我想用它来分析库,但我无法从我的库中查看成本中心(尽管我从其他模块中看到了一些,如
GHC.IO.Encoding

这是我的阴谋集团文件的简化版本

flag dev
  default: False
  manual: True

library
  exposed-modules:     Foo

  ghc-options:        -Wall
  ghc-prof-options:   -fprof-auto
  build-depends:       base

executable dev-example
  if !flag(dev)
    buildable: False

  ghc-options: -ddump-to-file -ddump-simpl -dsuppress-module-prefixes -dsuppress-uniques -ddump-core-stats -ddump-inlinings
  ghc-options: -O2  -rtsopts  
  ghc-prof-options: -fprof-auto


  hs-source-dirs: dev-example, ./
  main-is: Main.hs
  build-depends:       base
我一直在做什么

$ cabal configure -fdev  -w /usr/local/bin/ghc-7.6.3 --enable-library-profiling --enable-executable-profiling
$ cabal run dev-example -- +RTS -h -p

呃,问题只是我的库代码正在内联(或者至少标记为
inlineable