haskell - cabal build --ghc-option=-ddump-minimal-imports does not produce import files for main -


ddump-minimal-imports valuable tool. cannot make work executable , test-suites in cabal file.

in cabal file have:

test-suite testdatas6fortestdataitem     type:       exitcode-stdio-1.0     main-is:    datas6testdataitemtest.hs     build-depends:        base -any,        time,        monads-tf,       default-language: haskell2010     hs-source-dirs: ., srcexe     ghc-options: -threaded  -ddump-minimal-imports 

i find imports files modules in dist folder, nothing tests , mains.

  • due error on part?
  • intentional behaviour?
  • the result of technical limitations?

thank help!

i suspected emitted, not might expect, ran experiment , confirmed this. forked kazu's test example package added minimal import flags cabal file so:

test-suite doctest   type:                 exitcode-stdio-1.0   ...   ghc-options: -threaded  -ddump-minimal-imports  test-suite spec   type:                 exitcode-stdio-1.0   ...   ghc-options: -threaded  -ddump-minimal-imports 

and files did show under dist in dist/build/doctest/doctest-tmp/main.imports , dist/build/spec/spec-tmp/main.imports. spec, had other files in suite well, imports showed in same directory.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -