Installing Stack

If you don't have a recent Stack version installed in your system, follow the installation instructions for your operating system. After completing the installation, test that you have installed it correctly by running this command in a terminal:

stack --version

If it outputs a Stack version equal to or greater than 1.1.2, then you have it installed correctly.

Installing HLint (optional)

HLint is a tool for suggesting possible improvements to Haskell code. These suggestions include ideas such as using alternative functions, simplifying code and spotting redundancies.

You can use Stack to install HLint:

stack install hlint

Check that it was installed correctly with:

hlint --version

If you get the version in your terminal, you're done, otherwise, you probably need to add a missing directory to your path:

  • %APPDATA%\local\bin, if you are running Windows
  • $HOME/.local/bin, for other operating systems.

Help us explain this better! File a GitHub issue at if you have suggestions, or submit a patch with improvements to the file.