不能用急速安装镜头 [英] Cannot install lens with haste-inst

查看:103
本文介绍了不能用急速安装镜头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  $ haste-inst安装镜头$ b $我想安装镜头包以便与haskell一起使用。 b  

我收到以下错误:

 解决依赖关系... 
cabal:无法解决依赖关系:
正在尝试:base-4.6.0.1 / installed-4.6 ...(用户目标)
正在尝试: container-0.4.1.0 / installed-(用户目标)
尝试:镜头-4.9.1(用户目标)
下一个目标:template-haskell(依赖于镜头-4.9.1)
拒绝:template-haskell-2.10.0.0(冲突:
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。*)
rejec ting: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)
拒绝:template-haskell-2.3.0.1,2.3.0.0,2.2.0.0(冲突:镜头=>
template-haskell> = 2.4&&< 2.11)
达到Backjump限制(使用--max-backjumps更改)。

注意:使用沙箱时,所有包都必须具有一致的
依赖关系。尝试重新安装/取消注册有问题的软件包或
重新创建沙箱。

我相信沙箱Note会引起误解。沙箱是新的,无论如何沙箱中都不能存在 base 。



什么决定了急速的基础版本?用cabal安装镜头(用于haskell)工作正常:

  cabal安装镜头



编辑:



lens-family 目前已经取得了很好的效果。 p>镜头取决于模板Haskell,不幸的是,它目前不被Haste支持。



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

I'm trying to install the lens package to work with haskell.

$ haste-inst install lens

I get the following error:

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.

I believe the sandbox "Note" to be misleading. The sandbox is new and base cannot exist in the sandbox anyway.

What determines the version of base for haste? Installing lens with cabal (for haskell) works fine:

cabal install lens

Edit:

lens-family has worked well as a substitute so far.

解决方案

Lens depends on Template Haskell which, unfortunately, is not currently supported by Haste.

The way base is currently implemented for Haste makes TH support tricky. However, GHC 7.10 support will require some significant reshuffling anyway, so TH support will probably arrive together with 7.10.

这篇关于不能用急速安装镜头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆