mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 19:55:47 +02:00
stack: add page (#1509)
This commit is contained in:
parent
7c5077bd8e
commit
48cfe76ee8
1 changed files with 27 additions and 0 deletions
27
pages/common/stack.md
Normal file
27
pages/common/stack.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# 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}}"`
|
Loading…
Add table
Reference in a new issue