Contents

Installing Haskell

Contents

In this episode we will be installing Haskell, a lot of people struggle to install software to their machine and each operating system will be different, generally I advise the use of a package manger - not just to install Haskell, but to install all software. I will be making a post about Brew at some point which makes this process trivial.

MacOS

MacOS my operating system of choice, to install Haskell on a MacOS system, the best method is to use a package manager such as Brew.

  1. If you don’t have Brew installed, follow the link and install that. Brew is one of my essential utilities for any new Mac.
  2. Open your favourite terminal emulator such as Terminal.app, pre-installed on all Macs.
  3. From your command line run, brew install ghc, this will install the latest version of the Glasgow Haskell Compiler
  4. Happy Days! Haskell is now installed.

Linux

  1. Open your favourite terminal emulator such as Terminal.
  2. Using your favourite package manager install ghc, this will install the latest version of the Glasgow Haskell Compiler
  3. Happy Days! Haskell is now installed.

Windows

A lot of software we use in Computer Science does run on Windows, but it does not play nice, lets fix that.

  1. If your don’t have WSL (Windows Subsystem for Linux), go install that first
  2. Congratulations, your avoiding Windows, now follow the Linux instructions.