cabal安装 - 启用测试原因"不能满足-package-id"

时间:2015-01-08 22:57:22

标签: haskell cabal

我尝试使用HUnit创建自己的haskell包,名为Ringo。 当我运行cabal install --enable-test时,我遇到了这些错误。

Linking dist/dist-sandbox-aa80c02c/build/ringo/ringo ...
Preprocessing test suite 'tests' for Ringo-0.1.0.0...
<command line>: cannot satisfy -package-id Ringo-0.1.0.0-inplace
(use -v for more information)
cabal: Error: some packages failed to install:
Ringo-0.1.0.0 failed during the building phase. The exception was:
ExitFailure 1

这是Ringo.cabal

Test-Suite tests
  type:                exitcode-stdio-1.0
  main-is:             Tests.hs
  hs-source-dirs:      tests
  build-depends:       base, Ringo, transformers, test-framework, test-framework-hunit, HUnit
  default-language:    Haskell2010

而且cabal check什么也没提醒。

0 个答案:

没有答案