2012-12-03 71 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即使提示包有致命錯誤 –

相關問題