[commit: ghc] master: Compute boot-defined TyCon names from ModIface. (8f63ba3)

git at git.haskell.org git at git.haskell.org
Tue Jul 26 23:11:09 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8f63ba30b170c7063640b789ce703f68dca2c21b/ghc

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

commit 8f63ba30b170c7063640b789ce703f68dca2c21b
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Sat Jul 2 18:08:55 2016 -0700

    Compute boot-defined TyCon names from ModIface.
    
    Summary:
    Three things in this commit:
    
        1. Get rid of sb_ids; we are not going to use them
        to avoid infinite unfoldings in hs-boot files.
    
        2. Compute sb_tcs from ModIface rather than ModDetails.
        This means that the typechecker can look at this field
        without forcing the boot ModDetails, which would be
        bad if the ModDetails is not available yet (due to
        knot tying.)
    
        3. A big honking comment explaining what is going on
        here.
    
    Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>
    
    Reviewers: simonpj, austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2380


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

8f63ba30b170c7063640b789ce703f68dca2c21b
 compiler/iface/TcIface.hs       | 31 ++++++++++++-----
 compiler/rename/RnSource.hs     | 77 +++++++++++++++++++++++++++++++++--------
 compiler/typecheck/TcRnTypes.hs |  8 ++---
 3 files changed, 89 insertions(+), 27 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 8f63ba30b170c7063640b789ce703f68dca2c21b


More information about the ghc-commits mailing list