Is there a declarative way to specify packages to be installed into global-project using Haskell stack?
问题 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:/