With a fresh Ubuntu 12.12 install on my netbook I decided I would try to learn Haskell. I did some Lisp at university and I wanted to see (again) what all the fuss was about with the functional paradigm and Haskell in particular.
I’ve found loads of tutorials and have started a few of them in parallel with the view that going over the same ground a few times will help me better learn/remember/understand the concepts. Different tutorials cover different things so I should pick up a lot from the early parts of the various tutorials.
My main reason for writing this post was that it took me far too long to find out after installing ghc (version 7.4.2 by running sudo apt-get install ghc) why some of the tutorial code did not compile so I thought I would post this to help others searching Google for the answer.
I had two specific problems, which I have now solved, it was a simple case of installing the required libraries, but I either missed it in the tutorials or they weren’t explicit enough for a Haskell newbie.
Now the programs compile and as I learn more I’m sure I will be installing more libraries.