[commit: ghc] master: Improve environment handling in TcBinds (8eaa70a)

git at git.haskell.org git at git.haskell.org
Tue Mar 24 13:52:26 UTC 2015


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

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

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

commit 8eaa70a6b973f2a76f51a0d073a953fe696ddda1
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Mar 24 12:52:29 2015 +0000

    Improve environment handling in TcBinds
    
    This is a minor refactoring, but it simplifies the code quite a bit
    
    * Decrease the number of variants of tcExtend in TcEnv
    * Remove "not_actually_free" from TcEnv.tc_extend_local_env2
    * Simplify plumbingof the "closed" flag
    * Remove redundant scoping of wild-card variables


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

8eaa70a6b973f2a76f51a0d073a953fe696ddda1
 compiler/typecheck/TcBinds.hs                      | 177 +++++++++++----------
 compiler/typecheck/TcClassDcl.hs                   |   2 +-
 compiler/typecheck/TcEnv.hs                        | 113 +++++++------
 compiler/typecheck/TcInstDcls.hs                   |   4 +-
 compiler/typecheck/TcPat.hs                        |   7 +-
 compiler/typecheck/TcPatSyn.hs                     |   2 +-
 compiler/typecheck/TcRnTypes.hs                    |  45 +++---
 .../should_fail/Defaulting1MROff.stderr            |   2 +-
 .../ExtraConstraintsWildcardNotPresent.stderr      |   2 +-
 .../partial-sigs/should_fail/Trac10045.stderr      |   2 +-
 10 files changed, 187 insertions(+), 169 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 8eaa70a6b973f2a76f51a0d073a953fe696ddda1


More information about the ghc-commits mailing list