#1617: Add :browse! and various other additions to GHCi
authorSimon Marlow <simonmar@microsoft.com>
Wed, 7 Nov 2007 10:26:48 +0000 (10:26 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 7 Nov 2007 10:26:48 +0000 (10:26 +0000)
commit806ab6331b967d6176b8790a0b1b551ec0e8e2b6
tree55e8f1c815c399e38be146b4d4f0b0ea8330918a
parente216a6a757dc2791e7f21251b01989feaba56e44
#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
compiler/basicTypes/RdrName.lhs
compiler/ghci/InteractiveUI.hs
compiler/main/DynFlags.hs
compiler/main/GHC.hs
docs/users_guide/flags.xml
docs/users_guide/ghci.xml