刚刚安装了ghc-7.10.1,然后在Debian 7.8上安装了cabal-1.22.6( from sources )。我来自http://www.extellisys.com/articles/haskell-on-debian-wheezy的最小安装Haskell(我将7.8.4替换为7.10.1,并从github下载了最新的haskell-platform-master
< / p>
但是,每当我尝试安装Haskell平台时,安装会在几分钟后暂停:
Building hptool-0.1...
Preprocessing executable 'hptool' for hptool-0.1...
***
*** Running hptool
***
# cabal (for build/package/hscolour-1.23/deps)
Error when running Shake build system:
* build-all
* build-source
* build/product/haskell-platform-7.10.2.tar.gz
* build/lists/build.packages
* build/package/hscolour-1.23/deps
Error computing dependencies of hscolour-1.23:
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: hscolour-1.23 (user goal)
next goal: base (dependency of hscolour-1.23)
rejecting: base-4.8.0.0/installed-1b6..., 4.8.0.0, 4.7.0.2, 4.7.0.1, 4.7.0.0,
4.6.0.1, 4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0,
4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0, 3.0.3.2, 3.0.3.1 (global
constraint requires ==4.8.1.0)
Dependency tree exhaustively searched.
如何解决?
如何拥有基础4.8.1.0?
答案 0 :(得分:1)
在haskell-platform
存储库中搜索base
约束的提及,我在hptool / src / Releases2015.hs a hp_7_10_2
value of type Release
which seems to specify the 4.8.1.0 constraint中找到了,以及一个类似的hp2015_2_0_0
4.8.0.0约束。该hp_7_10_2
值用于指定要在src/Main.hs中安装的版本,因此我想如果您更改该行以使用hp2015_2_0_0
,您将获得可以满足的依赖项。另一种方法是安装GHC 7.10.2(其中包括base
4.8.1.0),但尚未发布(但是,有一个release candidate,正式版本应该很快发布。)