Skip main navigation

Installing Haskell for Yourself

How to download and install Haskell on your own machine, for common operating systems.
ghc screenshot
© University of Glasgow

GHC stands for the ‘Glasgow Haskell Compiler’. This is actually a set of components that allow you to execute Haskell programs on your local machine.

GHC works on Windows, Mac and Linux – although you will need to follow different instructions below for each operating system. Sadly, it does not currently run on mobile devices. There are alternative systems available, like Raskell for iOS.

The two bundled distributions of GHC are the Haskell Platform and Stack. We give instructions for installing the Haskell Platform below, since this is what we use. However many people prefer Stack. Perhaps it’s best to consult the comments section to see what other learners are saying, then make your choice.


Download the installation program and follow the instructions. If you have a recent Windows version (7 or later) you will probably use the 64-bit Haskell. If you have an earlier Windows, you might need the 32-bit version.

Mac OS X

Download the installation program and follow the instructions. You can also use MacPorts or build from source if you are feeling more adventurous.


Follow the instructions for your distro. Most common distros have haskell-platform as a package in their package managers. You could also build from source if you are feeling more adventurous.

How do I know it works?

You will need to open a terminal (cmd.exe on Windows, terminal on Mac OS, xterm on Linux) and type in ghci then press enter. If you see the prompt as in the screenshot above, then everything is ok. Type :help then press enter for an overview of the available commands; type :quit then press enter to finish ghci.

What if it doesn’t work?

Check the comments below. If you seem to be having a different problem, then post your own comment below and we will get back to you as soon as possible.

© University of Glasgow
This article is from the free online

Functional Programming in Haskell: Supercharge Your Coding

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education