[commit: ghc] wip/lazy-instance-matching: InstEnv: Ensure that instance visibility check is lazy (fe94e90)

git at git.haskell.org git at git.haskell.org
Tue Jul 19 11:04:59 UTC 2016


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

On branch  : wip/lazy-instance-matching
Link       : http://ghc.haskell.org/trac/ghc/changeset/fe94e90944161e3938c9a755fd78875cb05377c7/ghc

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

commit fe94e90944161e3938c9a755fd78875cb05377c7
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Jul 19 07:39:56 2016 +0200

    InstEnv: Ensure that instance visibility check is lazy
    
    Previously instIsVisible had completely broken the laziness of
    lookupInstEnv' since it would examine is_dfun_name to check the name of
    the defining module (to know whether it is an interactive module). This
    resulted in the visibility check drawing in an interface file
    unnecessarily.


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

fe94e90944161e3938c9a755fd78875cb05377c7
 compiler/iface/TcIface.hs |  8 ++--
 compiler/types/InstEnv.hs | 97 ++++++++++++++++++++++++++++++++---------------
 2 files changed, 71 insertions(+), 34 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 fe94e90944161e3938c9a755fd78875cb05377c7


More information about the ghc-commits mailing list