Skip to content

Starting and Stopping GHCi

As said before, you start GHCi from the command line using stack ghci:

Shell
$ stack ghci
>>> █

You exit by typing :quit or :q or by simply pressing Ctrl+D.

GHCi
>>> :quit
$ █

Also as mentioned before, everything that you enter at the GHCi prompt is regular Haskell code. The exception is commands that start with a colon, such as :quit. These are commands that control GHCi. They are not Haskell code.