[英]Haskell QuickCheck Test not running properly when run with Cabal
[英]Dependency issues running “cabal test” for Haskell
我正在為Haskell運行第一個“校准測試”,但出現錯誤:
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Configuring sample-0.1.0.0...
cabal: At least the following dependencies are missing:
base ==4.7.*
sampel.cabal:
-- Initial sample.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: sample
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.10
executable SampleTest
main-is: SampleTest.hs
build-depends: base >= 4.7 && <4.8, HUnit >=1.2 && <1.3
hs-source-dirs: test, src
default-language: Haskell2010
任何幫助表示贊賞。
GHC的版本與base的版本捆綁在一起。 GHC 7.10.2使用基礎4.8.1.0。
您的陰謀集團必須使用稍微過時的模板。
您應該更改可接受的基本版本的范圍(如您在上面的注釋中所做的那樣),或使用其他版本的GHC。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.