2015-09-02 72 views
1

我剛剛完成了我在Haskell的第一個可執行文件+庫+測試。 不幸的是我不能用cabal sdist命令創建tar-ball。cabal sdist:測試不適合的類型

cabal install --enable-tests && cabal build && cabal test是沒有問題的工作

cabal check只返回預警-O2

>> cabal sdist --verbose 
creating dist/src 
creating dist/src/sdist.-15440/UTFTConverter-0.1.0.0 
Distribution quality warnings: 
'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit 
and not just imposing longer compile times on your users. 
Building source dist for UTFTConverter-0.1.0.0... 
Preprocessing library UTFTConverter-0.1.0.0... 
Preprocessing executable 'UTFTConverter' for UTFTConverter-0.1.0.0... 
Preprocessing test suite 'library-tests:' for UTFTConverter-0.1.0.0... 
creating dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src 
creating dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src/Format 
creating dist/src/sdist.-15440/UTFTConverter-0.1.0.0/tests 
creating dist/src/sdist.-15440/UTFTConverter-0.1.0.0 
Installing src/Format.hs to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src/Format.hs 
Installing src/Format/C.hs to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src/Format/C.hs 
Installing src/Format/Converter.hs to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src/Format/Converter.hs 
Installing src/Format/Raw.hs to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src/Format/Raw.hs 
Installing src/Format/RGB565.hs to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src/Format/RGB565.hs 
Installing src/Main.hs to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/src/Main.hs 
Installing tests/Tests.hs to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/tests/Tests.hs 
Installing LICENSE to dist/src/sdist.-15440/UTFTConverter-0.1.0.0/LICENSE 
Installing Setup.lhs to dist/src/sdist.-15440/UTFTConverter-0.1.0.0/Setup.lhs 
Installing ./UTFTConverter.cabal to 
dist/src/sdist.-15440/UTFTConverter-0.1.0.0/./UTFTConverter.cabal 
creating dist/src/sdist.-15440/UTFTConverter-0.1.0.0 
Installing tests to dist/src/sdist.-15440/UTFTConverter-0.1.0.0/tests 
cabal: tests: inappropriate type 

我的陰謀版本

>> cabal -V 
cabal-install version 1.18.1.0 
using version 1.18.1.3 of the Cabal library 

我GHC版本

>> ghc -V 
The Glorious Glasgow Haskell Compilation System, version 7.8.3 

這是項目的github頁面,也許有人可以重現此錯誤。 >> Link <<

回答

0

從您的extra-source-files部分刪除tests部分。您不能在該部分放置目錄。