0

我试图让这个彩色的 ghci 提示工作。我收到以下错误,我怀疑这是由于 cabal 没有更新正确的包。有人有什么想法吗?

; cabal install IPPrint 
[...]
System/Unix/Chroot.hs:23:49:
    Module `System.Process' does not export `showCommandForUser'
cabal: Error: some packages failed to install:
Extra-1.42 depends on Unixutils-1.52 which failed to install.
Unixutils-1.52 failed during the building phase. The exception was:
ExitFailure 1
ipprint-0.4.1 depends on Unixutils-1.52 which failed to install.

提示应如下所示:

haskell ghci 颜色提示

4

1 回答 1

1

showCommandForUser已在 1.1 版本的process软件包中添加。您需要 ghc-7.2 或更高版本才能拥有它(进程是引导包之一,除非您非常了解自己在做什么,否则不建议安装 GHC 附带的版本以外的版本;重新安装引导包可能会导致其中的损坏已安装的软件包)。

如果您有较旧的 GHC,无论如何升级 GHC 是个好主意。

于 2012-12-06T14:20:08.690 回答