我在尝试按以下步骤安装接穗浏览器软件包时出现以下错误:错误安装接穗浏览器
% cabal install scion-browser-0.2.9
<snipped>
[23 of 23] Compiling Main (src/Main.hs, dist/build/scion-browser/scion-browser-tmp/Main.o)
src/Main.hs:31:24:
No instance for (MonadException BrowserM)
arising from a use of `getInputLine'
Possible fix:
add an instance declaration for (MonadException BrowserM)
In a stmt of a 'do' block: maybeLine <- getInputLine ""
In the expression:
do { maybeLine <- getInputLine "";
case maybeLine of {
Nothing -> return()
Just line -> do { ... } } }
In an equation for `loop':
loop
= do { maybeLine <- getInputLine "";
case maybeLine of {
Nothing -> return()
Just line -> ... } }
cabal: Error: some packages failed to install:
scion-browser-0.2.9 failed during the building phase. The exception was:
ExitFailure 1
任何想法如何解决这一问题?
谢谢。
'ghc-pkg list mtl'和'ghc-pkg list transformers'会显示什么?你有没有安装旧的'haskeline'? – 2012-07-23 18:05:29
我假设你只是在寻找版本号。 mtl-2.0.1.0和变换器-0.2.2.0和haskeline-0.7.0.0。 – brooks94 2012-07-23 18:32:20
不,我怀疑有其他事情,但我同时找到了原因。 – 2012-07-23 19:09:51