[commit: ghc] master: Refactor self-boot info (3c44a46)

git at git.haskell.org git at git.haskell.org
Tue Jul 21 13:20:54 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3c44a46b352a4eb7ff72eb3aa5495b25dee8351f/ghc

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

commit 3c44a46b352a4eb7ff72eb3aa5495b25dee8351f
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Jul 20 15:38:12 2015 +0100

    Refactor self-boot info
    
    This patch is a simple refactoring that prepares for a later one,
    related to Trac #10083.
    
    * Add a field tcg_self_boot :: SelfBootInfo to TcGblEnv,
      where SelfBootInfo is a new data type, describing the
      hi-boot file, if any, for the module being compiled.
    
    * Make tcHiBootIface return SelfBootInfo, a new data type
    
    * Make other functions get SelfBootInfo from the monad.
    
    * Remove tcg_mod_name from TcGblEnv; it was barely used and
      simpler to pass around explicitly.


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

3c44a46b352a4eb7ff72eb3aa5495b25dee8351f
 compiler/iface/TcIface.hs          |  28 ++++--
 compiler/rename/RnSource.hs        |  62 +++++++-----
 compiler/rename/RnSplice.hs        |   2 +-
 compiler/typecheck/TcRnDriver.hs   | 200 ++++++++++++++++++-------------------
 compiler/typecheck/TcRnMonad.hs    |   5 +-
 compiler/typecheck/TcRnTypes.hs    |  15 ++-
 compiler/typecheck/TcTyClsDecls.hs |  16 +--
 compiler/typecheck/TcTyDecls.hs    |   9 +-
 8 files changed, 184 insertions(+), 153 deletions(-)

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

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 3c44a46b352a4eb7ff72eb3aa5495b25dee8351f


More information about the ghc-commits mailing list