You need to install the Glasgow Haskell Compiler (GHC) in your computer. You need at version 7.10 or higher.

Haskell Documentation


If you want to know more about functional programming and Haskell, you can read online the book Real World Haskell (Chapter 1 to 13) by B. O'Sullivan, D. Stewart, and J. Goerzen.