我正在尝试使用单个测试套件构建一个包:

name:                  test
version:               0.1.0.0
build-type:            Simple
cabal-version:         >=1.10

library
  -- exposed-modules:     
  build-depends:       base
  hs-source-dirs:      src
  default-language:    Haskell2010

Test-Suite tests
  type:                detailed-0.9
  test-module:         Tests
  build-depends:       base, Cabal
  hs-source-dirs:      tests
  default-language:    Haskell2010

这是发生的事情:

PS C:\temporary\test> cabal configure --enable-tests
Resolving dependencies...
Configuring test-0.1.0.0...
PS C:\temporary\test> cabal build
Building test-0.1.0.0...
Preprocessing library test-0.1.0.0...
In-place registering test-0.1.0.0...
Preprocessing test suite 'tests' for test-0.1.0.0...
[1 of 1] Compiling Tests            ( tests\Tests.hs, dist\build\Tests.o )
C:\Program Files\Haskell Platform\2014.2.0.0\mingw\bin\ar.exe: dist\build\Tests.o: No such file or directory
PS C:\temporary\test>

我正在使用Windows 8.1 64位,使用Haskell Platform 2014.2.0.0 . 我安装了MSYS,路径上唯一的MinGW是GHC . 此外,所有git二进制文件都在路径上的MSYS和MinGW之后,因此它们不会冲突 . 任何建议表示赞赏 .


Update :使用 type: exitcode-stdio-1.0 时,建筑测试似乎正常 .