Is there a declarative way to specify packages to be installed into global-project using Haskell stack?

故事扮演 提交于 2019-12-11 08:43:00

问题


Stack allows global installation of packages using stack install <packagename> outside of a project directory.

Stack also has a ~/.stack/global-project/stack.yaml file that allows configuration of the global-project. However I can't see a way to "install" packages declaratively. The extra-deps and packages key in the yaml file don't seem to work for this method.

Instead I just have to run stack install <...> <...> each time the snapshot version gets updated for my global-project.

来源:https://stackoverflow.com/questions/47989939/is-there-a-declarative-way-to-specify-packages-to-be-installed-into-global-proje

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