Haskell 堆栈";计划建设失败。”;

Haskell 堆栈";计划建设失败。”;,haskell,haskell-stack,Haskell,Haskell Stack,我试图在一个项目上使用以下命令构建一个本地hoogle服务器,该项目使用lts-11.1作为stack.yaml stack hoogle -- server --local --port=8080 它以前可以工作,但现在由于以下错误而失败: ▸ stack hoogle -- server --local --port=8080 Hoogle isn't installed. Automatically installing (use --no-setup to disable) ... M

我试图在一个项目上使用以下命令构建一个本地hoogle服务器,该项目使用
lts-11.1
作为
stack.yaml

stack hoogle -- server --local --port=8080
它以前可以工作,但现在由于以下错误而失败:

▸ stack hoogle -- server --local --port=8080
Hoogle isn't installed. Automatically installing (use --no-setup to disable) ...
Minimum version is hoogle-5.0. Found acceptable hoogle-5.0.17.6 in your index, installing it.

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

In the dependencies for hoogle-5.0.17.6:
    haskell-src-exts-1.20.3 from stack configuration does not match >=1.21 && <1.22  (latest matching version is 1.21.0)
needed since hoogle is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true' in /Users/leo/.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/leo/.stack/global-project/stack.yaml:

haskell-src-exts-1.21.0@sha256:02421cacaa48c055551b8e5796efc543301b7ea9527a38e1385403d2b85512fb

Plan construction failed.
▸ 堆栈hoogle--服务器--本地--端口=8080
没有安装Hoogle。自动安装(使用--无需设置即可禁用)。。。
最低版本为hoogle-5.0。在索引中找到可接受的hoogle-5.0.17.6,正在安装它。
错误:构造生成计划时,遇到以下异常:
在hoogle-5.0.17.6的依赖项中:

堆栈配置中的haskell-src-exts-1.20.3不匹配>=1.21&&末尾附近有一个建议的操作。看起来它可以解决这个问题。当你实施这项建议时发生了什么?这确实奏效了。谢谢