Haskell Language Using GHCi Changing the GHCi default prompt


Example

By default, GHCI's prompt shows all the modules you have loaded into your interactive session. If you have many modules loaded this can get long:

Prelude Data.List Control.Monad> -- etc

The :set prompt command changes the prompt for this interactive session.

Prelude Data.List Control.Monad> :set prompt "foo> "
foo> 

To change the prompt permanently, add :set prompt "foo> " to the GHCi config file.