[commit: ghc] wip/T12382: tidyOccNames: Rename variables fairly (a078901)

git at git.haskell.org git at git.haskell.org
Wed Jul 13 08:55:00 UTC 2016


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

On branch  : wip/T12382
Link       : http://ghc.haskell.org/trac/ghc/changeset/a0789017484dccc534908c60355fd681f7674fac/ghc

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

commit a0789017484dccc534908c60355fd681f7674fac
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)


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

a0789017484dccc534908c60355fd681f7674fac
 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 a0789017484dccc534908c60355fd681f7674fac


More information about the ghc-commits mailing list