【问题标题】:Haskell cabal Reactive package errorHaskell cabal 反应包错误
【发布时间】:2012-07-22 09:27:10
【问题描述】:

在尝试使用 cabal 安装 Reactive 时,我得到了这个:

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。

【问题讨论】:

    标签: haskell cabal comonad


    【解决方案1】:

    问题在于它依赖于 category-extras >=0.53.5,但没有上限。 category-extras 包最近被弃用(有利于不那么单一的包集合),并且上传了一个包含有关模块和功能最终位置信息的元包。

    要么给出这样的上限:

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

    或更改 cabal 文件以改为依赖于适当的拆分包。后者可能需要更多的工作(特别是因为拆分中许多接口发生了显着变化)。

    【讨论】:

    • 谢谢。就在看到您的回答之前,我注意到 category-extras 已被弃用,并认为它一定与它有关。
    猜你喜欢
    • 1970-01-01
    • 2020-03-15
    • 1970-01-01
    • 2014-03-02
    • 1970-01-01
    • 1970-01-01
    • 2022-01-17
    • 1970-01-01
    • 2013-04-21
    相关资源
    最近更新 更多