[commit: ghc] master: tidyOccNames: Rename variables fairly (cd0750e)

git at git.haskell.org git at git.haskell.org
Thu Jul 14 08:02:44 UTC 2016


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

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

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

commit cd0750ec96fba9b1683b25954092439c0f267fd7
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue Jul 12 17:21:07 2016 +0200

    tidyOccNames: Rename variables fairly
    
    So that
    > :t (id,id,id)
    produces
    (id,id,id) :: (a3 -> a3, a2 -> a2, a1 -> a1)
    instead of
    (id,id,id) :: (a2 -> a2, a1 -> a1, a -> a)
    
    Differential Revision: https://phabricator.haskell.org/D2402


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

cd0750ec96fba9b1683b25954092439c0f267fd7
 compiler/basicTypes/OccName.hs                     | 59 +++++++++++++++++++---
 compiler/types/TyCoRep.hs                          | 10 +++-
 testsuite/tests/ado/ado004.stderr                  | 14 ++---
 testsuite/tests/driver/werror.stderr               |  2 +-
 testsuite/tests/ghci/scripts/T6018ghcifail.stderr  |  2 +-
 testsuite/tests/ghci/scripts/T7587.stdout          |  2 +-
 testsuite/tests/ghci/scripts/T7730.stdout          |  2 +-
 testsuite/tests/ghci/scripts/ghci013.stdout        |  2 +-
 .../partial-sigs/should_compile/Uncurry.stderr     |  2 +-
 .../tests/typecheck/should_compile/tc168.stderr    |  2 +-
 .../tests/typecheck/should_fail/T6018fail.stderr   |  2 +-
 .../typecheck/should_fail/T6018failclosed.stderr   |  4 +-
 12 files changed, 78 insertions(+), 25 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 cd0750ec96fba9b1683b25954092439c0f267fd7


More information about the ghc-commits mailing list