有没有办法使用Cabal保持Haskell软件包最新? [英] Is there a way to use Cabal to keep Haskell packages up-to-date?

查看:94
本文介绍了有没有办法使用Cabal保持Haskell软件包最新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法:

I'm confused by how Cabal works. I'm used to packages managers that have as part of their core functionality the ability to easily update all packages that have changed, or at least to get a list of packages on my system that have updates available. But Cabal seems to lack this functionality. Am I missing something?


  1. 自动或轻松更新所有out-最新的软件包;或者,如果没有这样做,

  2. 获取我的系统上安装的具有可用更新的软件包列表?

Is there a way to:


推荐答案

cabal中缺少许多标准软件包管理功能。这是其中之一,并且(传递式)移除包是另一个。党的路线是,cabal旨在成为一个自动构建工具,仅此而已;尽管随着时间的推移,这条线变得越来越薄。

There are a number of standard package-management features missing from cabal. This is one of them, and (transitive) removal of packages is another. The party line is that cabal is intended to be an automatic build tool, nothing more; though that line grows thinner and thinner as the years drag on.

如果你知道你想要升级哪些包,你可以;通常 cabal update cabal安装这些软件包将从Hackage获取最新的软件包列表,并尝试找到一个安装计划安装所需软件包的最新版本。你可以用 cabal install --dry-run这些软件包来请求安装计划而不执行它;如果它看起来不像是选择了你想要的版本,那么你可以添加约束条件,如

If you know which packages you want to upgrade, you can; generally cabal update and cabal install those packages will grab the newest package list from Hackage and try to find an install plan that installs the newest versions of the requested packages. You can ask for the install plan without executing it with cabal install --dry-run those packages; if it doesn't look like it picked the versions you want, you can add constraints, as in

cabal install those packages --constraint 'those>=9000'

这篇关于有没有办法使用Cabal保持Haskell软件包最新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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