Skip to content

Remove the list of loaded modules from the ghci prompt

This MR addresses the problem with medium-to-large sized projects resulting in a ghci prompt that visually clutters the terminal. While this is rarely an issue for experienced Haskellers (myself included), who often have a custom .ghci configuration file, we should aim to provide a more palatable experience for newcomers.

This MR replaces the list of loaded modules with ghci> , and set the multiline input to | , instead of %s| .

(Note that it does not prevent anyone from setting the %s> prompt in the .ghci configuration file, but merely does not make it the default anymore)

TODO

  • Change the code
  • Update the user guide

closes #18702 (closed)

Edited by Hécate Moonlight

Merge request reports