When I :load a Haskell script into GHCi, it changes the prompt from Prelude> to *Main>. After I’m done with this script, how can I go back to the Prelude> prompt? There seems to be no documentation regarding this.
When I :load a Haskell script into GHCi, it changes the prompt from Prelude>
Share
Try using the
:mcommand. It should unload all the modules.This is short for
:modulewhich sets the current context. You can also load arbitrary modules this way: