2012-12-03 44 views
0

我下载xmonad-额外-0.10.1.2和运行以下: xmonad-extras.cabal:http://hpaste.org/78707为什么不建立Eval.hs?

$cabal configure 
Resolving dependencies... 
Configuring xmonad-extras-0.10.1.2... 

$cabal build 
Building xmonad-extras-0.10.1.2... 
Preprocessing library xmonad-extras-0.10.1.2... 
In-place registering xmonad-extras-0.10.1.2... 

It seems ok but there is no compiled Eval. 

$find . -name "*.o" 
./dist/build/XMonad/Util/WindowPropertiesRE.o 
./dist/build/XMonad/Prompt/MPD.o 
./dist/build/XMonad/Actions/Volume.o 
./dist/build/HSxmonad-extras-0.10.1.2.o 

$find . -name "Eval*" 
./XMonad/Prompt/Eval.hs 
./XMonad/Actions/Eval.hs 

Then i tried use Setup.lhs directly: 
$runghc Setup.lhs configure 
Configuring xmonad-extras-0.10.1.2... 
Setup.lhs: At least the following dependencies are missing: 
X11 >=1.4.3, mtl -any, xmonad ==0.10.*, xmonad-contrib ==0.10.* 

$ghc-pkg list|grep -i xmonad 
xmonad-0.10 
xmonad-contrib-0.10 

令人奇怪的是,任何建议表示赞赏!

+1

对于第二部分,'runghc。/ Setup.lhs'方式默认使用全球安装,因此只能使用从全局DB包,除非你明确地传递了'--user'标志的配置步骤。 'cabal install'默认情况下会让用户安装。 “缺失”库位于用户数据库中。 –

回答

2

从快速浏览,看起来只有在配置包时设置with_hint标志时才会生成Eval模块。

$ cabal configure -f with_hint 
+0

cabal configure --f with_hint即使提示包有致命错误 –

相关问题