You need to install the Glasgow Haskell Compiler (GHC) in your computer. You need at version 8.6 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.