Chapter 1: Introduction

Learn You a Haskell for Great Good!

What is Haskell?

  • Purely functional programming language
  • Think of program as a series of transformations on data. Execution of functions and calculations are only done when it is being force to show the result.
  • Statically typed with type inference.

Haskell compiler

  • GHC
  • ghci – interactive mode

First command

  • load myfunctions.hs
    • :l myfunctions
  • reload current script
    • :r