stack

Tool for managing Haskell projects. More information: <https://github.com/commercialhaskell/stack>.

Install

All systems
curl cmd.cat/stack.sh
Debian Debian
apt-get install haskell-stack
Ubuntu
apt-get install haskell-stack
Arch Arch Linux
pacman -S stack
image/svg+xml Kali Linux
apt-get install haskell-stack
Windows (WSL2)
sudo apt-get update sudo apt-get install haskell-stack
OS X
brew install haskell-stack
Raspbian
apt-get install haskell-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

© tl;dr; authors and contributors