[commit: ghc] master: Add support for all top-level declarations to GHCi (3db7572)

Simon Marlow marlowsd at gmail.com
Wed Sep 21 10:54:20 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/3db757241ce7fb99c096c30481aefa86bb9855a1

>---------------------------------------------------------------

commit 3db757241ce7fb99c096c30481aefa86bb9855a1
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Fri Sep 16 13:40:53 2011 +0100

    Add support for all top-level declarations to GHCi
    
      This is work mostly done by Daniel Winograd-Cort during his
      internship at MSR Cambridge, with some further refactoring by me.
    
    This commit adds support to GHCi for most top-level declarations that
    can be used in Haskell source files.  Class, data, newtype, type,
    instance are all supported, as are Type Family-related declarations.
    
    The current set of declarations are shown by :show bindings.  As with
    variable bindings, entities bound by newer declarations shadow earlier
    ones.
    
    Tests are in testsuite/tests/ghci/scripts/ghci039--ghci054.
    Documentation to follow.

 compiler/basicTypes/DataCon.lhs-boot     |    2 +
 compiler/basicTypes/Name.lhs             |   18 +-
 compiler/basicTypes/Name.lhs-boot        |    4 +
 compiler/basicTypes/RdrName.lhs          |    5 +-
 compiler/deSugar/Desugar.lhs             |   66 ++++----
 compiler/ghci/ByteCodeLink.lhs           |    2 +-
 compiler/ghci/Debugger.hs                |   25 ++--
 compiler/ghci/Linker.lhs                 |   61 ++++++-
 compiler/iface/IfaceEnv.lhs              |   76 +++++----
 compiler/main/GHC.hs                     |   32 ++--
 compiler/main/HscMain.lhs                |  120 +++++++++++--
 compiler/main/HscTypes.lhs               |  283 +++++++++++++++++++++++-------
 compiler/main/InteractiveEval.hs         |   76 +++++---
 compiler/main/TidyPgm.lhs                |  138 +++++++--------
 compiler/prelude/PrelNames.lhs           |   12 +-
 compiler/rename/RnNames.lhs              |   37 ++---
 compiler/rename/RnSource.lhs             |    3 +-
 compiler/typecheck/FamInst.lhs           |   32 ++--
 compiler/typecheck/Inst.lhs              |  110 +++++++-----
 compiler/typecheck/TcEnv.lhs             |   22 ++-
 compiler/typecheck/TcInstDcls.lhs        |    5 +-
 compiler/typecheck/TcRnDriver.lhs        |  266 ++++++++++++++++++----------
 compiler/typecheck/TcRnMonad.lhs         |   19 +--
 compiler/typecheck/TcRnTypes.lhs         |    3 +
 compiler/typecheck/TcTyClsDecls.lhs      |   19 +-
 compiler/types/FamInstEnv.lhs            |  122 ++++++++++++--
 compiler/types/InstEnv.lhs               |  139 +++++++++------
 compiler/types/TypeRep.lhs               |    2 +
 compiler/utils/Outputable.lhs            |   12 +-
 compiler/vectorise/Vectorise.hs          |   18 +-
 compiler/vectorise/Vectorise/Env.hs      |   11 +-
 compiler/vectorise/Vectorise/Monad.hs    |    8 +-
 compiler/vectorise/Vectorise/Type/Env.hs |   24 +--
 ghc/GhciMonad.hs                         |   19 ++-
 ghc/InteractiveUI.hs                     |   78 ++++++---
 35 files changed, 1241 insertions(+), 628 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 3db757241ce7fb99c096c30481aefa86bb9855a1



More information about the Cvs-ghc mailing list