繁体   English   中英

haskell:stack install hfmt error

[英]haskell : stack install hfmt error

我是haskell的新手,并尝试使用堆栈安装hfmt。

stack install hfmt

但它表明

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

In the dependencies for hfmt-0.2.0:

  hindent-4.6.4 must match ==5.* (latest applicable is 5.2.5)
  hlint-1.9.35 must match ==2.* (latest applicable is 2.0.15)
  stylish-haskell-0.6.1.0 must match ==0.8.* (latest applicable is 0.8.1.0)

needed for unknown reason - stack invariant violated.

所以,我试图再次重新安装hindent,hlint和Stylish-haskell。 但是我找不到任何命令 - stack upgradestack update ..即使我没有删除这些包。

你能帮忙安装/更新这些包吗?

对于这样的报告,最好包括stack --version的输出,以了解您正在使用的工具的版本。 另外,您如何安装Stack可能是有用的信息。

至于hfmt :Stackage快照中没有它的版本,你可以在这里看到:

https://www.stackage.org/package/hfmt

在我的机器上,我能够使用此命令成功构建LTS 10.3:

stack install hfmt-0.2.0 --resolver lts-10.3

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM