The stack new
command will create a new project based on a project template.
Templates can be located on the local filesystem, on Github, or arbitrary URLs.
For more information, please see the user guide:
https://docs.haskellstack.org/en/stable/GUIDE/#templates
There are many templates available, some simple examples:
stack new myproj # uses the default template
stack new myproj2 rio # uses the rio template
stack new website yesodweb/sqlite # Yesod server with SQLite DB
For more information and other templates, please see the stack-templates
Wiki:
https://github.com/commercialhaskell/stack-templates/wiki
Please feel free to add your own templates to the Wiki for discoverability.
Want to improve this text? Send us a PR!
https://github.com/commercialhaskell/stack-templates/edit/master/STACK_HELP.md