【发布时间】:2019-08-02 07:24:06
【问题描述】:
我正在尝试使用 Stackage lts-13.12 构建我的项目。
在 Stack 抱怨 Cabal 版本太新后,我尝试安装旧版本:
cabal --version
cabal-install version 2.2.0.0
compiled using version 2.2.0.1 of the Cabal library
但是,当我运行 stack solver 时,我收到以下错误:
Using configuration file: stack.yaml
Using cabal packages:
- ./
Using resolver: lts-13.12
Warning: Installed version of cabal-install (2.4.1.0) is newer than stack has been tested with. If you run into difficulties, consider downgrading.
Using compiler: ghc-8.6.4
Asking cabal to calculate a build plan...
Trying with packages from lts-13.12 and 1 external packages as hard constraints...
The following lines from cabal-install output could not be parsed:
optparse-applicative-0.14.3.0 (via: project-0.1.0.0 project-0.1.0.0) (new
package)
CallStack (from HasCallStack):
error, called at src/Stack/Solver.hs:174:16 in stack-1.9.3-F7FXKCpM3pk5wCtbL9Utvv:Stack.Solver
我的问题是:
- 为什么 Stack 看到更新的阴谋集团?我怎样才能让它看到旧的?
- 为什么 Stack 与 Cabal 2.4.1.0 不兼容,而这是 Stackage LTS 13.12 中的版本?
我正在运行 Stack 的 Version 1.9.3,如果这有什么不同的话。
【问题讨论】:
标签: haskell ghc cabal haskell-stack cabal-install