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

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

我删除了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文件?

haskell cabal haskell-stack
1个回答
2
投票

没关系,我想通了。它应该是package.yaml而不是package.yml

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