[project @ 2002-01-24 16:55:35 by simonmar]
authorsimonmar <unknown>
Thu, 24 Jan 2002 16:55:37 +0000 (16:55 +0000)
committersimonmar <unknown>
Thu, 24 Jan 2002 16:55:37 +0000 (16:55 +0000)
commit03b874e796c49ed6c6d23e07f1a14c5dcb35c5ce
tree7bf834691292439934a6d3eccf530f08fa2c23e8
parentd8ef45a3126bf72d09e1eae91d45de66e9ab37af
[project @ 2002-01-24 16:55:35 by simonmar]
Add support for Hugs's :browse (or :b) command.  There are two forms:

- :b M   (interpreted modules only) shows everything
          defined in M - the types of top-level functions,
  and definitions of classes and datatypes.

- :b *M  shows everything exported from module M.
  Available for both compiled and interpreted modules.

The user interface is subject to change, but for now it is consistent
with the new semantics of the :module command.

The implementation is a little tricky, since for a package module we
have to be sure to slurp in all the required declarations first.
ghc/compiler/compMan/CompManager.lhs
ghc/compiler/ghci/InteractiveUI.hs
ghc/compiler/main/HscMain.lhs
ghc/compiler/main/MkIface.lhs
ghc/compiler/rename/Rename.lhs