2012-07-24 91 views
1

嘗試安裝無功與陰謀,我得到這個:哈斯克爾陰謀無包錯誤

src/FRP/Reactive/PrimReactive.hs:79:8: 
    Could not find module `Control.Comonad' 
    It is a member of the hidden package `comonad-1.1.1.6'. 
    Perhaps you need to add `comonad' to the build-depends in your .cabal file. 
    It is a member of the hidden package `comonad-3.0.0.1'. 
    Perhaps you need to add `comonad' to the build-depends in your .cabal file. 

this,它確實沒有comonad依賴。但是,它在PrimReactive.hs中使用Control.Comonad。

回答

2

問題是它取決於category-extras> = 0.53.5,但沒有上限。 category-extras軟件包最近已被棄用(贊成軟件包集成程度較低),並在其位置上載了一個包含模塊和功能結束位置信息的元軟件包。

要麼給一個上限值,這樣的:

cabal install reactive --constraint "category-extras < 0.54" 

或更改小集團文件依賴於適當的分立封裝來代替。後者可能需要更多的工作(尤其是因爲許多接口在拆分中發生了顯着變化)。

+0

謝謝。就在看到你的答案之前,我注意到category-extras已被棄用,並認爲它必須與它有關。 – 2012-07-24 05:29:48