cvs commit: fptools/ghc/compiler/basicTypes Id.lhs fptools/ghc/compiler/ghci InteractiveUI.hs fptools/ghc/compiler/main GHC.hs HscMain.lhs fptools/ghc/compiler/nativeGen RegisterAlloc.hs fptools/ghc/compiler/typecheck TcRnDriver.lhs TcRnMonad.lhs fptools/ghc/compiler/types Class.lhs ...

Simon Marlow simonmar at haskell.org
Wed Jun 15 08:03:21 EDT 2005


simonmar    2005/06/15 05:03:21 PDT

  Modified files:
    ghc/compiler/basicTypes Id.lhs 
    ghc/compiler/ghci    InteractiveUI.hs 
    ghc/compiler/main    GHC.hs HscMain.lhs 
    ghc/compiler/nativeGen RegisterAlloc.hs 
    ghc/compiler/typecheck TcRnDriver.lhs TcRnMonad.lhs 
    ghc/compiler/types   Class.lhs InstEnv.lhs 
  Log:
  Re-implement GHCi's :info and :browse commands in terms of TyThings
  rather than IfaceSyn.
  
  The GHC API now exposes its internal types for Haskell entities:
  TyCons, Classes, DataCons, Ids and Instances (collectively known as
  TyThings), so we can inspect these directly to pretty-print
  information about an entity.  Previously the internal representations
  were converted to IfaceSyn for passing to InteractiveUI, but we can
  now remove that code.
  
  Some of the new code comes via Visual Haskell, but I've changed it
  around a lot to fix various dark corners and properly print things
  like GADTs.
  
  The pretty-printing interfaces for TyThings are exposed by a new
  module PprTyThing, which is implemented purely in terms of the GHC API
  (and is probably a good source of sample code).  Visual Haskell should
  be able to use the functions exported by this module directly.
  
  Lots of new goodies are exported by the GHC module, mainly for
  inspecting TyThings.
  
  Revision  Changes    Path
  1.130     +5 -0      fptools/ghc/compiler/basicTypes/Id.lhs
  1.210     +48 -137   fptools/ghc/compiler/ghci/InteractiveUI.hs
  1.40      +62 -44    fptools/ghc/compiler/main/GHC.hs
  1.222     +1 -30     fptools/ghc/compiler/main/HscMain.lhs
  1.10      +52 -0     fptools/ghc/compiler/nativeGen/RegisterAlloc.hs
  1.126     +28 -137   fptools/ghc/compiler/typecheck/TcRnDriver.lhs
  1.56      +12 -9     fptools/ghc/compiler/typecheck/TcRnMonad.lhs
  1.42      +8 -3      fptools/ghc/compiler/types/Class.lhs
  1.44      +1 -1      fptools/ghc/compiler/types/InstEnv.lhs


More information about the Cvs-ghc mailing list