gpt4 book ai didi

haskell - 如何从 package.yml 生成 .cabal 文件

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

我删除了 package.yml 文件以使用 .cabal 文件。现在我想尝试在 package.yml 中定义所有内容,并让 stack 自动生成 .cabal 文件。

但是当我手动将 .cabal 文件转换为 package.yml 并删除 .cabal 文件并运行 stack build 时,它向我显示以下错误:

Stack looks for packages in the directories configured in the 'packages' variable defined in your stack.yaml
The current entry points to /Users/leo/zhangchiqing/hello/ but no .cabal file could be found there.

如何从 package.yml 生成 .cabal 文件?

最佳答案

在包含 package.yaml 的目录中运行 hpack。您可以通过运行cabal install hpack来安装hpack

关于haskell - 如何从 package.yml 生成 .cabal 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49090033/

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