使用Haskell Stack创建新项目时出错

问题描述 投票:0回答:1

现在我无法在我的文件系统中的任何地方执行stack new my-project。当我这样做时,我明白了

| => stack new my-project
Downloading template "new-template" to create project "my-project" in my-project/ ...

Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- my-project/my-project.cabal

Selecting the best among 12 snapshots...

Downloaded lts-10.2 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

这使我无法设置和构建项目:

| => cd my-project; stack build
Error parsing targets: The specified targets matched no packages.
Perhaps you need to run 'stack init'?

我有堆栈版本1.5.1和GHC 8.0.2。可能是什么导致了这个?我真的很茫然。我没有在网上找到任何类似于我所描述的内容。

haskell haskell-stack
1个回答
3
投票

https://github.com/fpco/stackage/issues/2759相同。 将堆栈升级到v1.6.1

© www.soinside.com 2019 - 2024. All rights reserved.