我正在尝试在项目上使用以下命令构建本地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.
/Users/leo/.stack/global-project/stack.yaml
中包含resolver: lts-13.15
。
很久以前,当我从事该项目时,我在ghc8.2.2
中使用lts-11.1
。我最近重新安装了笔记本电脑上的所有设备,包括haskell-stack
,现在我的stack --version
是1.9.3 x86_64
,无法建立呼声。不知道是因为我的堆栈版本还是其他原因。
我该如何解决?