1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:22:08 +02:00
tldr/pages/common/stack.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

523 B

stack

Manage 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}}