无法安装 Yorgey 等人的“unbound”软件具有最新 GHC/Haskell 平台的库

发布于 2024-11-07 14:10:27 字数 553 浏览 5 评论 0原文

有没有人设法获得 Yorgey 等人的“未绑定”库,用于使用绑定语法,并安装最新的 GHC (7.0.3) 和 Haskell 平台?尝试未绑定的阴谋集团安装,我得到以下信息:

Resolving dependencies...
cabal: cannot configure unbound-0.2.3. It requires base >=4.3 && <5
For the dependency on base >=4.3 && <5 there are these packages: base-4.3.0.0
and base-4.3.1.0. However none of them are available.
base-4.3.0.0 was excluded because of the top level dependency base -any
base-4.3.1.0 was excluded because of the top level dependency base -any

有人知道解决方案/解决方法,或者这里可能发生什么?

Has anybody managed to get Yorgey et al's "unbound" library, for working with syntax with binding, to install with the latest GHC (7.0.3) and Haskell platform? Trying a cabal install unbound, I get the following:

Resolving dependencies...
cabal: cannot configure unbound-0.2.3. It requires base >=4.3 && <5
For the dependency on base >=4.3 && <5 there are these packages: base-4.3.0.0
and base-4.3.1.0. However none of them are available.
base-4.3.0.0 was excluded because of the top level dependency base -any
base-4.3.1.0 was excluded because of the top level dependency base -any

Anybody know a solution/work around, or what may be happening here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒浓于脸红 2024-11-14 14:10:27

结束语:

  • “未绑定”库在 2011 Haskell 平台上运行良好,而且实际上,构建时不会出现警告。

OP 的路径中有多个(较旧的)版本的 GHC,导致构建错误,因为该包依赖 GHC 7。确保您拥有准确的 Haskell 平台环境是解决方案。

需要注意的是,我们应该编写一个脚本来检查给定 Haskell 环境的健全性,以捕获这样的错误

Just to close this one:

  • The "unbound" library works fine with the 2011 Haskell Platform, and indeed, builds without warnings.

The OP had multiple (older) versions of GHC in his path, leading to build errors, since the package relies on GHC 7. Ensuring you have exactly the Haskell Platform environment is the solution.

As a note, we should write a script that checks the sanity of a given Haskell environment, to catch errors like this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文