我一直在尝试在Stack项目中本地安装ghc-mod。
但是,每当我尝试git push origin branch-name
时,都会遇到如下的构建计划失败:
stack build ghc-mod
如果我遵循警告的建议将缺少的依赖项添加到我的stack.yaml的Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for ghc-mod-5.8.0.0:
cabal-helper must match <0.8 && >=0.7.3.0, but the stack configuration has no specified
version (latest matching version is 0.7.3.0)
djinn-ghc must match <0.1 && >=0.0.2.2, but the stack configuration has no specified version
(latest matching version is 0.0.2.3)
extra must match <1.6 && >=1.4, but the stack configuration has no specified version (latest
matching version is 1.5.3)
fclabels must match ==2.0.*, but the stack configuration has no specified version (latest
matching version is 2.0.3.3)
ghc-paths must match <0.2 && >=0.1.0.9, but the stack configuration has no specified version
(latest matching version is 0.1.0.9)
ghc-syb-utils must match <0.3 && >=0.2.3, but the stack configuration has no specified
version (latest matching version is 0.2.3.3)
haskell-src-exts must match <1.20 && >=1.18, but the stack configuration has no specified
version (latest matching version is 1.19.1)
hlint must match <2.1 && >=2.0.8, but the stack configuration has no specified version
(latest matching version is 2.0.15)
monad-control must match >=1 && <1.1, but the stack configuration has no specified version
(latest matching version is 1.0.2.3)
monad-journal must match <0.8 && >=0.4, but the stack configuration has no specified version
(latest matching version is 0.7.2)
mtl needed, but the stack configuration has no specified version (latest matching version
is 2.2.2)
old-time needed, but the stack configuration has no specified version (latest matching
version is 1.1.0.3)
optparse-applicative must match >=0.13.0.0 && <0.14, but the stack configuration has no
specified version (latest matching version is 0.13.2.0)
pipes must match <4.4 && >=4.1, but the stack configuration has no specified version (latest
matching version is 4.3.9)
safe must match <0.4 && >=0.3.9, but the stack configuration has no specified version
(latest matching version is 0.3.17)
semigroups must match >=0.10.0 && <0.19, but the stack configuration has no specified
version (latest matching version is 0.18.5)
split must match >=0.2.2 && <0.3, but the stack configuration has no specified version
(latest matching version is 0.2.3.3)
syb must match <0.8 && >=0.5.1, but the stack configuration has no specified version (latest
matching version is 0.7)
temporary must match <1.3 && >=1.2.0.3, but the stack configuration has no specified version
(latest matching version is 1.2.1.1)
text must match <1.3 && >=1.2.1.3, but the stack configuration has no specified version
(latest matching version is 1.2.3.0)
transformers-base must match <0.5 && >=0.4.4, but the stack configuration has no specified
version (latest matching version is 0.4.5.2)
needed since ghc-mod is a build target.
密钥中,我将得到更多的递归错误,并最终获得一个构建计划,该构建计划至少在我不明显的地方存在构建冲突也没有解决该问题的有用线索。
这是stack.yaml:
extra-deps
我在这里错过了什么吗?当然,这应该更容易。我收集了GHC 8.2以后不支持ghc-mod的信息,因此我特意通过GHC 8.0.2设置了该项目,并通过运行GHCI进行了验证(并非没有它自己的很长的警告列表)。
我也尝试使用7.x版本的GHC,尽管存在一些不同的依存关系,但它具有相同的问题。