July 2023
Intermediate to advanced
670 pages
17h 13m
English
We’ll start our Haskell journey by diving into ghci to run some commands interactively. ghci is Haskell’s REPL, an interactive environment that lets you run commands, call functions, and even debug your programs. Most Haskell developers rely on ghci extensively as they develop their programs, and it’s a natural starting point for you to start familiarizing yourself with the basic syntax of the language. For instructions on getting ghci and the rest of your Haskell environment installed and configured, you can consult the instructions online at haskell.org.[1]
When you start up ghci you’ll see a default prompt:
| | $ ghci |
| | GHCi, version 9.4.2: https://www.haskell.org/ghc/ :? for help |
| | Prelude> |
The first thing ...
Read now
Unlock full access