我不能用cabal安装一堆不同的东西,因为它们依赖于network-2.4.0.1,它不能用以下命令安装:Socket.hsc: In function ‘main’:Socket.hsc:1054: error: invalid application of ‘sizeof’ to incomplete type ‘struct
所以,我正在尝试安装cabal,这样我就可以让quickcheck在haskell中工作,但似乎什么都不起作用。每当我尝试在我的终端(在mac上)运行" cabal -install“时,我得到相同的信息"command not found",我已经查看了多个不同的”解决方案“,甚至在cabal网站上的”解决方案“,但似乎什么都不起作用。任何帮助都将不胜感激
使用cabal,我尝试在Haskell Platform 2012.2.0.0 (Windows XP)上安装acid-state,但得到以下错误: Not in scope: catchIO Perhaps you meant `catch' (imported from Prelude)
Not in scope: tryE Perhaps you meant `try' (imported from Control.Exception.Extensib
$ cabal --versionusing version 1.16.0 of the Cabal library
Note: there is a new version of cabal-installTo upgrade, run: cabal install cabal-install
$ cabal install