Haskell Stack build specific executable

試著忘記壹切 提交于 2019-12-06 03:22:36

Stack uses a component based lookup, e.g.

stack build packagename:component-type:component-name

So if your package is called "foo", and your executable is called "bar", you can use

stack build foo:exe:bar

However, if the component-name is unique, you can drop the package's name and the component type. So if your executable is called "exectuable-name", it's

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