stack
Tool for managing Haskell projects.
Install
- All systems
-
curl cmd.cat/stack.sh
- Debian
-
apt-get install haskell-stack
- Ubuntu
-
apt-get install haskell-stack
- Arch Linux
-
pacman -S stack
- Kali Linux
-
apt-get install haskell-stack
- OS X
-
brew install haskell-stack
- Raspbian
-
apt-get install haskell-stack
- Dockerfile
- dockerfile.run/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"
-
Run a program and pass an argument to it:
stack exec program_name -- argument
© tl;dr; authors and contributors