mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 09:42:07 +02:00

* pages/*, style-guide: update pages, fix Markdown (commit 1) * Update pages * style-guide.de: update page * Apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * pip3: remove search command * rpm: update path placeholder Co-authored-by: pixel <pixel+github@chrissx.de> * Update pages/linux/pkgfile.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: pixel <pixel+github@chrissx.de>
28 lines
534 B
Markdown
28 lines
534 B
Markdown
# stack
|
|
|
|
> Tool for managing Haskell projects.
|
|
> More information: <https://github.com/commercialhaskell/stack>.
|
|
|
|
- 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}}`
|