snippetbashTip
stack — Manage Haskell projects. More information: <https://docs.haskellstack.org/en/stable/commands/>.
Viewed 0 times
commandstackclihaskellmanageprojectsinformationmore
Problem
How to use the
stack command: Manage Haskell projects. More information: <https://docs.haskellstack.org/en/stable/commands/>.Solution
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 buildRun tests inside a package:
stack testCompile a project and re-compile every time a file changes:
stack build --file-watchCompile 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}}Code Snippets
Create a new package
stack new {{package}} {{template}}Compile a package
stack buildRun tests inside a package
stack testCompile a project and re-compile every time a file changes
stack build --file-watchCompile a project and execute a command after compilation
stack build --exec "{{command}}"Context
tldr-pages: common/stack
Revisions (0)
No revisions yet.