gpt4 book ai didi

haskell - Stack 无法安装 intero

转载 作者:行者123 更新时间:2023-12-03 22:12:49 24 4
gpt4 key购买 nike

我刚刚安装了 Stack 使用

curl -sSL https://get.haskellstack.org/ | sh

安装顺利,但尝试使用 Stack 安装 Intero 时失败
ffriis@BNEC02QR6Y0G8WN ~> stack install hlint intero

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

In the dependencies for intero-0.1.32:
ghc-8.4.4 from stack configuration does not match >=7.8 && <=8.4.3 (latest matching version is 8.4.3)
needed since intero is a build target.

Some different approaches to resolving this:

* Set 'allow-newer: true' in /Users/ffriis/.stack/config.yaml to ignore all version constraints and build anyway.

* Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working build configuration. This can be convenient when dealing with many complicated constraint
errors, but results may be unpredictable.

* Recommended action: try adding the following to your extra-deps in /Users/ffriis/.stack/global-project/stack.yaml:

ghc-8.4.3@sha256:07ee8fb5dab414c35f93d5d5afc1ecaa65a49c409346e5063436cc8b838cd754

Plan construction failed.

我已按照说明编辑了文件,但仍然出现相同的错误。解决问题的最佳方法是什么?

最佳答案

目前intero支持GHC 8.4.3 ,但堆栈正在抓取 8.4.4 .将您的解析器更改为 lts-12.14stack.yaml

关于haskell - Stack 无法安装 intero,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53114445/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com