Cabal安装quickcheck版本问题

发布于 2024-09-10 05:22:06 字数 491 浏览 3 评论 0原文

我正在尝试通过 cabal 在 Ubuntu 10.04 上安装 Quickcheck 2。无论我尝试做什么,我总是会得到以下结果:

$ cabal list quickcheck
* QuickCheck
    Synopsis: Automatic testing of Haskell programs
    Latest version available: 2.1.1.1
    Latest version installed: 1.2.0.0
    Homepage: http://www.cse.chalmers.se/~koen
    License:  BSD3

这是在干净的 Ubuntu 10.04 上,仅安装了 ghc6 和 cabal-install apt 软件包。在尝试安装 Quickcheck 之前,我已经通过 cabal 安装了二进制包。

它告诉我 2.1.1.1 可用,但它只安装 1.2.0.0。为什么我无法让它实际安装最新版本?

I'm trying to install quickcheck 2 via cabal on Ubuntu 10.04. No matter what I try to do, I always end up with the following:

$ cabal list quickcheck
* QuickCheck
    Synopsis: Automatic testing of Haskell programs
    Latest version available: 2.1.1.1
    Latest version installed: 1.2.0.0
    Homepage: http://www.cse.chalmers.se/~koen
    License:  BSD3

This is on a clean Ubuntu 10.04 with only the ghc6 and cabal-install apt packages installed. I had installed the binary package via cabal before trying to install quickcheck.

It tells me 2.1.1.1 is available, but it only ever installs 1.2.0.0. Why can't I get it to actually install the latest version?

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

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

发布评论

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

评论(1

瑶笙 2024-09-17 05:22:06
$ cabal install --dry-run quickcheck
Resolving dependencies...
In order, the following would be installed (use -v for more details):
QuickCheck-1.2.0.0

我不知道为什么它选择旧版本,但你可以这样做:

$ cabal install --dry-run quickcheck-2.1
Resolving dependencies...
In order, the following would be installed (use -v for more details):
mtl-1.1.0.2
QuickCheck-2.1

你可以在版本号中更具体,但你不必这样做。

$ cabal install --dry-run quickcheck
Resolving dependencies...
In order, the following would be installed (use -v for more details):
QuickCheck-1.2.0.0

I'm not sure why it chooses the old version, but you can just do:

$ cabal install --dry-run quickcheck-2.1
Resolving dependencies...
In order, the following would be installed (use -v for more details):
mtl-1.1.0.2
QuickCheck-2.1

You can be more specific in the version number, but you don't have to.

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