Stack is not currently in the cargo registry, so to install, you must clone the repo and install it manually with cargo.

# Clone the repo
git clone

# Move into the directory
cd stack

# After cloning the repo
cargo install --path stack-cli

# Now Stack should be installed
stack --version


Use stack --help for further documentation.


You can also use the REPL to run code interactively.

stack repl

Run a file

To run a file, use the run subcommand.

stack run <file>

# or, to watch the file for changes
stack run --watch <file>