在当前解析器之外安装包

Installing a package outside current resolver

我正在使用 stack lts-9.0 快照,其中包括 process-1.4.X。由于这个版本的一些问题,我想使用process-1.6.1.0。将此版本添加到 extra-deps 似乎还不够:

extra-deps:
- process-1.6.1.0

因为这会导致以下错误:

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

In the dependencies for Cabal-1.24.2.0:
    process-1.6.1.0 must match >=1.1.0.1 && <1.5 (latest applicable is 1.4.3.0)

在这些情况下我需要做什么?

如消息中所写,问题出在 Cabal-1.24.2.0 depending on process < 1.5。 将 Cabal-2.0.0.2 添加到 extra-deps.