堆栈 - 如何(?力)安装旧版本的包装
问题描述:
所以我尝试安装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.
那么,如何迫使它安装该版本?有没有简单的方法来清除堆栈安装缓存或类似的东西?
答
我认为像
stack --resolver lts-4.2 install ghc-mod
应该做的伎俩,否则我会做沿着cabal get ghc-mod-5.4.0.0
和stack init
,stack install
有线条的东西。您可能需要安装/切换到不同的ghc版本或使用相当于--allow-newer
+0
也许我错过了一些明显的东西,但是在'stack --resolver lts-4.2 install ghc-mod' ,5.4.0.0隐藏在哪里? – Gal
+0
堆栈包在某个解析器中有固定版本,https://www.stackage.org/lts-4.2显示ghc-mod在那里有正确的版本 – epsilonhalbe
的堆栈。清除缓存应该永远不需要使用堆栈,因为它被设计为可以与很多不同版本一起工作,无论是库还是可执行文件 – epsilonhalbe