What goes in a Stack package.yaml file?

谁都会走 提交于 2019-11-30 21:45:18

问题


I notice that Stack supports using a package.yaml file that it will use to generate a .cabal file. For example, yi-core/package.yaml. Its structure seems very similar to a Cabal file, but not quite the same. Some of the keys have been renamed (for example, Stack uses source-dirs instead of hs-source-dirs).

I haven't found any documentation on this feature. The Stack docs don't seem to mention package.yaml at all. Does a specification exist?


回答1:


This is hpack, available here: https://github.com/sol/hpack

It's a slightly different package format, and, as you say, can be used to generate cabal files. It isn't directly tied to stack.



来源:https://stackoverflow.com/questions/40332040/what-goes-in-a-stack-package-yaml-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!