Install Haskell!

So Dr. Yorgey sent you here to install Haskell on your computer, eh? What a sadistic jerk. Fortunately, installing Haskell is not too difficult these days, and I bet he would be happy to help if you run into any issues!

ghcup is a convenient tool for managing all the different pieces of a Haskell toolchain (compiler, language server, package manager…). Follow the directions at the ghcup website to install it. You can just keep hitting Enter to accept all the defaults.

Once ghcup is installed (you may need to close and re-open the command prompt for the installation to take effect), you can use it to install GHC and HLS, by typing the following two lines at a command prompt:

ghcup install --set ghc 9.10.1
ghcup install hls

To make sure it worked, try typing ghci at a command prompt. If Haskell starts up, congratulations!

Mac OS troubleshooting

If you run into errors complaining about a C compiler that is missing or does not work, try installing the XCode command-line tools by typing this command in a terminal:

xcode-select --install