#1617: Add :browse! and various other additions to GHCi
- :browse! a variant of :browse that lists children separately, not in context, and gives import qualifiers in comments SimonM: I also added sorting by source location for interpreted modules in :browse, and alphabetic sorting by name otherwise. For :browse *M, the locally-defined names come before the external ones. - :{ ..lines.. :} (multiline commands) allow existing commands to be spread over multiple lines to improve readability, both interactively and in .ghci (includes a refactoring that unifies the previous three command loops into one, runCommands, fed from cmdqueue, file, or readline) - :set now shows GHCi-specific flag settings (printing/ debugger), as well as non-language dynamic flag settings :show languages show active language flags :show packages show active package flags as well as implicitly loaded packages
Showing
- compiler/basicTypes/RdrName.lhs 7 additions, 1 deletioncompiler/basicTypes/RdrName.lhs
- compiler/ghci/InteractiveUI.hs 197 additions, 71 deletionscompiler/ghci/InteractiveUI.hs
- compiler/main/DynFlags.hs 1 addition, 0 deletionscompiler/main/DynFlags.hs
- compiler/main/GHC.hs 7 additions, 0 deletionscompiler/main/GHC.hs
- docs/users_guide/flags.xml 1 addition, 1 deletiondocs/users_guide/flags.xml
- docs/users_guide/ghci.xml 75 additions, 6 deletionsdocs/users_guide/ghci.xml
Loading
Please register or sign in to comment