我尝试使用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
什么也没提醒。