不能用haste-inst安装镜头

时间:2015-04-23 19:31:34

标签: haskell lens haste

我正在尝试安装镜头包以使用haskell。

$ 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

什么决定了哈希的基础版本?使用cabal安装镜头(用于haskell)可以正常工作:

cabal install lens

编辑:

到目前为止,{p> lens-family作为替代品已经发挥得很好。

1 个答案:

答案 0 :(得分:1)

Lens依赖于模板Haskell,遗憾的是,Haste目前不支持它。

目前为Haste实施基础的方式使TH支持变得棘手。但是,GHC 7.10支持无论如何都需要进行一些重大改组,因此TH支持可能会与7.10一起到达。