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.
- If you don’t have Brew installed, follow the link and install that. Brew is one of my essential utilities for any new Mac.
- Open your favourite terminal emulator such as
Terminal.app
, pre-installed on all Macs. - From your command line run,
brew install ghc
, this will install the latest version of the Glasgow Haskell Compiler - Happy Days! Haskell is now installed.
Linux
- Open your favourite terminal emulator such as
Terminal
. - Using your favourite package manager install
ghc
, this will install the latest version of the Glasgow Haskell Compiler - 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.
- If your don’t have WSL (Windows Subsystem for Linux), go install that first
- Congratulations, your avoiding Windows, now follow the Linux instructions.