The Haskell Tool Stack

Installation

curl -sSL <https://get.haskellstack.org/> | sh
stack setup
echo 'eval "$(stack --bash-completion-script stack)"' >> ~/.bash_profile

Commands

# Create a new project from a template.
stack new PACKAGE_NAME

# Build the package.
stack build

# Build and run an executable.
stack run

# Run the tests.
stack test

# Run the benchmarks.
stack bench

# Build the documentation.
stack haddock

Example

package.yaml

dependencies:
- base >= 4.7 && < 5

stack.yaml

extra-deps: []