-->

不能匆忙,研究所安装镜头(Cannot install lens with haste-inst)

2019-10-22 19:28发布

我试图安装镜头包哈斯克尔工作。

$ haste-inst install lens

我得到以下错误:

Resolving dependencies...
cabal: Could not resolve dependencies:
trying: base-4.6.0.1/installed-4.6... (user goal)
trying: containers-0.4.1.0/installed- (user goal)
trying: lens-4.9.1 (user goal)
next goal: template-haskell (dependency of lens-4.9.1)
rejecting: template-haskell-2.10.0.0 (conflict:
base==4.6.0.1/installed-4.6..., template-haskell => base==4.8.*)
rejecting: template-haskell-2.9.0.0 (conflict: base==4.6.0.1/installed-4.6...,
template-haskell => base==4.7.*)
rejecting: template-haskell-2.8.0.0 (conflict: containers==0.4.1.0/installed-,
template-haskell => containers==0.5.*)
rejecting: template-haskell-2.7.0.0 (conflict: base==4.6.0.1/installed-4.6...,
template-haskell => base==4.5.*)
rejecting: template-haskell-2.6.0.0 (conflict: base==4.6.0.1/installed-4.6...,
template-haskell => base==4.4.*)
rejecting: template-haskell-2.5.0.0 (conflict: base==4.6.0.1/installed-4.6...,
template-haskell => base==4.3.*)
rejecting: template-haskell-2.4.0.1 (conflict: base==4.6.0.1/installed-4.6...,
template-haskell => base==4.2.*)
rejecting: template-haskell-2.4.0.0 (conflict: base==4.6.0.1/installed-4.6...,
template-haskell => base>=3 && <4.3)
rejecting: template-haskell-2.3.0.1, 2.3.0.0, 2.2.0.0 (conflict: lens =>
template-haskell>=2.4 && <2.11)
Backjump limit reached (change with --max-backjumps).

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.

我相信沙箱“注”是误导。 沙箱是新的base不能在沙箱反正存在。

是什么决定了基地急速的版本? 有阴谋(Haskell的)安装镜头正常工作:

cabal install lens

编辑:

镜头家族至今一直运作良好的替代品。

Answer 1:

镜头取决于哪,不幸的是,目前不支持急速哈斯克尔模板。

该方法的基础是对目前实施的急速使得TH支持棘手。 然而,GHC 7.10支持将需要一些显著洗牌,无论如何,所以TH的支持将可能与一起7.10到达。



文章来源: Cannot install lens with haste-inst