Can';不要安装Haskell QuickCheck
我需要安装Haskell的QuickCheck。我尝试运行Can';不要安装Haskell QuickCheck,haskell,Haskell,我需要安装Haskell的QuickCheck。我尝试运行cabal install QuickCheck,并收到以下消息: Resolving dependencies... In order, the following would be installed: primitive-0.6 (new package) template-haskell-2.9.0.0 (latest: 2.10.0.0) (reinstall) changes: containers-0.5.5.1 -> 0.
cabal install QuickCheck
,并收到以下消息:
Resolving dependencies...
In order, the following would be installed:
primitive-0.6 (new package)
template-haskell-2.9.0.0 (latest: 2.10.0.0) (reinstall) changes:
containers-0.5.5.1 -> 0.5.6.3
tf-random-0.5 (new package)
QuickCheck-2.8.1 -base4point8 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
ghc-7.8.3
Use --force-reinstalls if you want to install anyway.
正在解析依赖项。。。
为此,将安装以下设备:
primitive-0.6(新软件包)
template-haskell-2.9.0.0(最新版本:2.10.0.0)(重新安装)更改:
容器-0.5.5.1->0.5.6.3
tf-random-0.5(新包装)
快速检查-2.8.1-基本4点8(新包)
阴谋集团:以下包装可能因重新安装而损坏:
ghc-7.8.3
如果仍要安装,请使用--force重新安装。
我对Haskell很陌生,但我暗自怀疑打破ghc不是一个可行的解决方案。有什么建议吗?谢谢
另外,ghc和cabal安装是使用MacPorts安装的。如上所述,ghc版本为7.8.3。cabal install的端口版本为hs cabal install@1.18.0.5_1。另外,我在两台不同的机器上遇到了这个错误;一个运行操作系统10.9,另一个运行操作系统10.10。对于每个用户
cabal
安装,而不是一个,运行cabal安装--重新安装--强制重新安装QuickCheck即可。不过,使用沙盒仍然要好得多。我对Haskell也是新手,但现在人们似乎应该使用堆栈
如果是,
$git克隆https://github.com/stackbuilders/quickcheck-manual
$cd快速检查手册/
$stack设置
$stack安装
Ref/请参阅使用沙箱分隔不同的包数据库,不要弄乱主环境:尝试使用标志--constraint='template-haskell installed'--constraint='containers installed'
进行安装。尽管有关于可能破坏ghc的警告,但非沙箱解决方案似乎已经起作用。非常感谢。