2017-05-30 29 views
0

我在LTS 8.15。我正在啓動一個基本的默認庫,爲此我需要使用win32 packageHaskell Stack中的Win32包問題

在小集團文件中使用這些依賴關係:

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. 

如果它的事項的答案,這裏是我的簡約stack.yaml文件:

resolver: lts-8.15 
packages: 
- '.' 
extra-deps: [] 
flags: {} 
extra-package-dbs: [] 

我的問題:我不明白髮生了什麼事情錯了,任何人都可以提出一個方法來解決問題?

回答

2

它看起來像是一個區分大小寫問題,我可以嘗試將它添加爲Win32。

+0

它的工作!傻傻的我,我從來沒有注意到包名是區分大小寫的。謝謝。 – Janthelme

+0

但是,考慮一下,會出現一條錯誤消息,指出Stack無法找到拼寫錯誤的軟件包名稱,對於故障排除更有用? – Janthelme

+0

我以爲這樣的東西存在,但它顯然沒有在這裏工作。也許你有興趣嘗試公關功能? –