堆栈 - 我如何(强制?)安装旧版本的软件包

时间:2017-03-08 13:25:47

标签: haskell haskell-stack

所以我正在尝试安装ghc-mod-5.4.0.0,这会导致其他一些安装崩溃:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for ghc-mod-5.4.0.0:
    async-2.1.1 must match <2.1 && >=2.0.2 (latest applicable is 2.0.2)
    cabal-helper-0.7.3.0 must match <0.7 && >=0.6.1.0 (latest applicable is 0.6.3.1)
    cereal-0.5.4.0 must match <0.5 && >=0.4 (latest applicable is 0.4.1.1)
    directory-1.3.0.0 must match <1.3 (latest applicable is 1.2.7.1)
    extra-1.5.1 must match ==1.4.* (latest applicable is 1.4.12)
    ghc-8.0.2 must match >=7.4 && <7.11
    haskell-src-exts-1.18.2 must match <1.18 && >=1.16.0.1 (latest applicable is 1.17.1)
    pipes-4.3.2 must match ==4.1.* (latest applicable is 4.1.9)
    process-1.4.3.0 must match <1.3 (latest applicable is 1.2.3.0)
    time-1.6.0.1 must match <1.6 (latest applicable is 1.5.0.1)
    transformers-0.5.2.0 must match <0.5 (latest applicable is 0.4.3.0)

Plan construction failed.

那么如何强制它安装该版本呢?有没有一种简单的方法来清除堆栈安装缓存或类似的东西?

1 个答案:

答案 0 :(得分:4)

我认为像

stack --resolver lts-4.2 install ghc-mod

应该做的伎俩,否则我会在那里cabal get ghc-mod-5.4.0.0stack initstack install做一些事情。您可能需要安装/切换到其他ghc版本或使用相当于--allow-newer的堆栈

相关问题