1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 03:22:08 +02:00
tldr/pages/common/stack.md
2017-12-19 12:01:07 +00:00

31 lines
527 B
Markdown

# stack
> Tool for managing Haskell projects.
- Create a new project:
`stack new {{project_name}}`
- Install all packages needed by a project:
`stack install`
- Compile a project:
`stack build`
- Run tests inside a project:
`stack test`
- Compile a project and re-compile every time a file changes:
`stack build --file-watch`
- Compile a project and execute a command after compilation:
`stack build --exec "{{command}}"`
- Run a program and pass an argument to it:
`stack exec {{program_name}} -- {{argument}}`