mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
c47a10e664
Co-authored-by: Ivan Baluta <50071699+ivanbaluta@users.noreply.github.com>
29 lines
530 B
Markdown
29 lines
530 B
Markdown
# stack
|
|
|
|
> Manage Haskell projects.
|
|
> More information: <https://docs.haskellstack.org/en/stable/commands/>.
|
|
|
|
- Create a new package:
|
|
|
|
`stack new {{package}} {{template}}`
|
|
|
|
- Compile a package:
|
|
|
|
`stack build`
|
|
|
|
- Run tests inside a package:
|
|
|
|
`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}} -- {{argument}}`
|