From 48cfe76ee81e4940728e172b57e4514bc03edb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Sun, 1 Oct 2017 19:53:11 +0200 Subject: [PATCH] stack: add page (#1509) --- pages/common/stack.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/stack.md diff --git a/pages/common/stack.md b/pages/common/stack.md new file mode 100644 index 000000000..52ad9c6d5 --- /dev/null +++ b/pages/common/stack.md @@ -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}}"`