This section will be used to familiarize you with the Haskell interactive command line. Before we introduce you to the interactive command line, we will introduce the optional configuration file that you can create in
~/.ghci in your home folder. We have configured ours with the following code:
:set prompt "> "
The preceding code tells the interactive command line to display a single
> as the prompt. You can start the interactive command line using the
ghci command. Here is what you will see when the command line is started:
$ ghci GHCi, version 7.4.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. ...