4

当您尝试安装库 reactie-banana-wx 时,出现错误:

src\CRUD.hs:10:18: Could not find module `Data.Map': It is a member of the hidden package `containers-0.4.0.0'. Perhaps you need to add `containers' to the build-depends in your .cabal file.

安装命令:

cabal install reactive-banana-wx

请帮助纠正问题。

4

1 回答 1

4

它提供的建议是合理的,如果有点令人困惑:cabal install隐藏它生成.cabal文件的步骤!以下是您可以明确地执行该部分的方法:

cabal unpack reactive-banana-wx
cd reactive-banana-wx-*
gvim *.cabal # or whatever editor you prefer
# follow the instructions given in the error
cabal install
于 2011-09-17T14:31:23.570 回答