Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 ubuntu 上,我目前安装了 haskell-platform 2011.2.0.1.2,并且我目前正在编写一些代码,如果有 Control.Concurrent.Chan一个Eq. 不幸的是, base-4.3.1.0我安装的 in 不是,而是 in base-4.4.0.0 Chan的一个实例Eq。
Control.Concurrent.Chan
Eq
base-4.3.1.0
base-4.4.0.0
Chan
是否可以通过使用沙盒cabal-dev或任何其他方法来更新基础,以不会破坏太多软件包的方式?
cabal-dev
不,你永远不应该升级base。它是引导包之一——GHC 本身需要构建和附带的包——升级它们将导致非常糟糕的事情™。(这里是引导包的完整列表;列中带有 a-的所有内容tag都是一个。不要升级这些!)
base
-
tag
事实上,cabal-install 的cabal upgrade功能被删除正是因为它有升级引导包的讨厌趋势。
cabal upgrade
它不仅是一个引导包,而且作为核心功能,它本质上与特定的 GHC 版本相关联。您最好的选择是在本地目录中安装相应的较新版本的 GHC。