我删除了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
而不是package.yml