Day 1: Logical

Like Spock, you’ll find that Haskell’s core concepts are easy to grasp. You’ll work strictly with defining functions. Given the same input parameters, you’ll get the same output parameters, every time. I’m going to use GHC, or the Glasgow Haskell Compiler, version 6.12.1. It’s widely available across many platforms, but you can find other implementations as well. As always, I’m going to start in the console. Type ghci:

 
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
 
Loading package ghc-prim ... linking ... done.
 
Loading package integer-gmp ... linking ... done.
 
Loading package base ... linking ... done.
 
Loading package ffi-1.0 ... linking ... done.

You’ll see Haskell load a few packages, and then you’re ready ...

Get Seven Languages in Seven Weeks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.