我在link。我正在启动一个基本的默认库,我将需要使用LTS 8.15。
在cabal文件中使用这些依赖项:
build-depends: base >= 4.7 && < 5
, win32
我收到以下错误消息:
While constructing the build plan, the following exceptions were encountered:
In the dependencies for w32test-0.1.0.0:
win32 must match -any, but the stack configuration has no specified version
Plan construction failed.
我试图强制打包版本:
build-depends: base >= 4.7 && < 5
, win32 == 2.3.1.1
但我又收到了同样的错误消息:
While constructing the build plan, the following exceptions were encountered:
In the dependencies for w32test-0.1.0.0:
win32 must match ==2.3.1.1, but the stack configuration has no specified version
Plan construction failed.
如果答案很重要,这是我的minimalistic stack.yaml文件:
resolver: lts-8.15
packages:
- '.'
extra-deps: []
flags: {}
extra-package-dbs: []
我的问题:我不明白出了什么问题,有人可以提出解决问题的方法吗?
答案 0 :(得分:2)
对我来说,它看起来像是区分大小写的问题,您可以尝试将其添加为Win32。