How to configure the GHCI prompt with a configuration file (Haskell)

To configure your GHCI prompt, create a Haskell/GHCI configuration file named .ghci, which should be in your home directory. Assuming that you are first creating it, put content like this in it:

:set prompt "ghci> "
:set +t

The first command shown sets the GHCI prompt, and the second command tells GHCI to show the type of each expression you type.

As an example of the file location, my home directory is /Users/Al, so I created my file as /Users/Al/.ghci.

If you wanted to see how to set your Haskell GHCI prompt permanently, or otherwise wanted to see how to create a GHCI configuration file, I hope this is helpful.