更新基地有多安全? [英] How safe is it to update base?

查看:72
本文介绍了更新基地有多安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ubuntu上,我现在安装了haskell-platform 2011.2.0.1.2,而我
目前正在处理一些代码,在这里
Control是非常好的。 Concurrent.Chan Eq 的一个实例。不幸的是,在
base-4.3.1.0 中,这是我安装的,它不是,但是在
base-4.4.0.0 Chan Eq 的一个实例。

On ubuntu I currently have haskell-platform 2011.2.0.1.2 installed, and I am currently working on some code where it would be very nice to have Control.Concurrent.Chan be an instance of Eq. Unfortunately, in base-4.3.1.0, which is the one I have installed, it is not, but in base-4.4.0.0 Chan is an instance of Eq.

是否有可能通过使用 cabal-dev 或任何
其他方法对它进行沙箱更新这种方式不会破坏太多的包吗?

Would it be possible to update base, maybe by sandboxing it with cabal-dev or any other method, in a way that would not break too many packages?

推荐答案

不,你不应该升级 base 。它是引导软件包之一 - GHC自己需要构建的软件包,并随附 - 并升级它们将导致非常糟糕的事情™。 (以下是完整的启动包列表;所有内容均为 标记列是一个,不要升级这些!)

No, you should never upgrade base. It's one of the boot packages — the packages that GHC itself needs to build, and ships with — and upgrading them will lead to Very Bad Things™. (Here's a full list of boot packages; everything with a - in the tag column is one. Don't upgrade these!)

确实,cabal-install的 cabal upgrade 功能被删除,因为它有一个令人讨厌的升级引导软件包的倾向。

Indeed, cabal-install's cabal upgrade feature was removed precisely because it had a nasty tendency to upgrade boot packages.

它不仅是一个引导软件包,而且是这样的核心功能,它与固有的GHC版本有着内在的联系。您最好的选择是将GHC的相应较新版本安装在本地目录中。

Not only is it a boot package, but being such core functionality, it's pretty much inherently tied to a specific GHC version. Your best option is to install the corresponding newer version of GHC in a local directory.

这篇关于更新基地有多安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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