Haskell 堆栈不支持的版本

Haskell 堆栈不支持的版本,haskell,archlinux,haskell-stack,stackage,Haskell,Archlinux,Haskell Stack,Stackage,我正在尝试使用stack(lts-3.20)进行构建,但出现了一些错误: $ stack build No compiler found, expected minor version match with ghc-7.10.2 (x86_64-ncurses6) (based on resolver setting in /home/black/programmation/haskell/libssh2-hs/stack.yaml). To install the correct GHC in

我正在尝试使用stack(lts-3.20)进行构建,但出现了一些错误:

$ stack build
No compiler found, expected minor version match with ghc-7.10.2 (x86_64-ncurses6) (based on resolver setting in /home/black/programmation/haskell/libssh2-hs/stack.yaml).
To install the correct GHC into /home/black/.stack/programs/x86_64-linux/, try running "stack setup" or use the "--install-ghc" flag.
$ stack setup
No information found for ghc-7.10.2.
Supported versions for OS key 'linux64-ncurses6': GhcVersion 7.10.3, GhcVersion 8.0.1, GhcVersion 8.0.2

我使用archlinux 64位,这里发生了什么,我能做什么?

此错误消息暗示了问题的根源:

Arch Linux默认提供libncurses6,而GHC的标准版本需要libncurses5/libtinfo5。堆栈可以获取使用libncurses6的替代GHC构建;但是,它们仅在GHC 7.10.3之后提供,这解释了为什么使用GHC 7.10.2的快照会出现此问题。下面的建议应该可以解决这个问题:

从AUR安装,然后通过执行类似于
Stack--GHC build=standard setup
的操作,强制Stack使用标准GHC绑定列表


(请注意,
--ghc build=standard
可能不是必需的——如果我没记错的话,几个月前我遇到这个问题时,
堆栈设置
在我安装ncurses5 compat libs后检测到了适当的ghc build,无需明确指定。)

更新LTS版本?这意味着对包进行了修改,这似乎违背了堆栈的思维方式
No information found for ghc-7.10.2.
  Supported versions for OS key 'linux64-ncurses6': GhcVersion 7.10.3, GhcVersion 8.0.1, GhcVersion 8.0.2