Chapter 1Your first program
In this chapter, you will learn how to use ghci, get to know the basic syntax of Haskell, and write your first program.
You are the captain of the Starship Ganesh. Along with your crew, you travel the galaxy to discover new planets and new lifeforms. With the help of Alonzo, your ship’s onboard computer, you have already met dozens of intelligent lifeforms, some with civilizations far more advanced than your own. After a recent series of events involving some rapscallion who calls himself The Doctor, you were left discombobulated, and have forgotten how to use Alonzo, your ship’s witty computer who speaks with a scottish accent and must be programmed using Haskell. We’d better get started so you can be on your way across the galaxy again.