Functional Programming and Intelligent Algorithms

Software Installation

Week 1: Getting started with Haskell

1 Software Installation

We will be programming in Haskell for this module. Hence you will need to install the Haskell platform one way or another.

All our examples and instructions will assume that you use some kind of standard Unix system, typically linux. We know that many students use more obscure operating systems, and we will try to help. However, it is your own responsibility to make it work if you use non-standard systems.

We have prepared a virtual machine image which you may try if you want to try out linux on a non-linux system. In our experience though, most students find it easier to install the Haskell-platform on their system, and live with quirks, than to install a virtualbox and the virtual machine. It is your choice.

1.1 Install the Haskell Platform

You can download and install the Haskell platform from Many linux distros also have it available in the standard repos. For instance, in Debian you can do

aptget install haskellplatform

You will probably have to install a number of cabal packages. For instance we need easyplot later today. You can install it using the following command:

cabal install easyplot Other packages can be installed as the need arises. Which packages you need may depend on your OS and how you install the Haskell platform.

You will also need a text editor to edit source code. Windows Notepad is a bad choice because it does not understand unix-style linebreaks. Most other editors should work well, even on files imported from other operating systems. Popular examples include gedit, vim, and emacs.

Easyplot depends on gnuplot which has to be installed as a standalone problem. On Debian/Ubuntu this is straight forward:

aptget install gnuplot On recent releases on Mac OS you may have to instal an X server, such as XQuartz, to make gnuplot work.

1.2 Install Virtualbox

You need to download and install virtualbox from, following the official instructions for you OS.

When you have virtualbox, you can download and add the VM for the module.

Download the VM from
Unzip the archive and put in a suitable place.
Start virtualbox.
Import the fpia VM (Machine Add)
Start the VM
Log in using
  • Username: fpia
  • Password: NeuralNetwork

7th April 2017
Hans Georg Schaathun /