gpt4 book ai didi

haskell - Aeson 构建测试 yesod-sqlite 项目时出错

转载 作者:行者123 更新时间:2023-12-02 14:41:26 24 4
gpt4 key购买 nike

我是 yesod 的新手,只是尝试使用堆栈从模板构建一两个基本站点,但当我这样做时,我收到了 Aeson 错误。这里 [0] 有一个关于错误消息的讨论,但它显然已在 1.6.1 中修复,而我正在使用 1.6.3。这就是我正在尝试的:

$ stack --version
Version 1.6.3
$ stack new yesod-project yesod-sqlite
Downloading template "yesod-sqlite" to create project "yesod-project" in yesod-project/ ...
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- yesod-project/

Selecting the best among 12 snapshots...

* Matches lts-10.5

Selected resolver: lts-10.5
Initialising configuration using resolver: lts-10.5
Total number of user packages considered: 1
Writing configuration to file: yesod-project/stack.yaml
All done.
$ cd yesod-project/
$ stack build
$ stack exec -- yesod devel
Yesod devel server. Enter 'quit' or hit Ctrl-C to quit.
Application can be accessed at:

http://localhost:3000
https://localhost:3443
If you wish to test https capabilities, you should set the following variable:
export APPROOT=https://localhost:3443

Downloading lts-10.5 build plan ...
Downloaded lts-10.5 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""
Type help for available commands. Press enter to force a rebuild.

[0] https://github.com/commercialhaskell/stack/issues/3634

最佳答案

如果你运行stack exec -- stack --version我敢打赌你会发现它早于1.6.3。您可能应该删除 stack exec --which stack

处的堆栈二进制文件

关于haskell - Aeson 构建测试 yesod-sqlite 项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48811247/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com