[commit: ghc] master: Simplify and tidy up the handling of tuple names (750271e)

git at git.haskell.org git at git.haskell.org
Fri Apr 4 07:46:46 UTC 2014


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

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

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

commit 750271e61bdbaad50c19176406512e79abe404a8
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Apr 4 08:41:35 2014 +0100

    Simplify and tidy up the handling of tuple names
    
    This fixes Trac #8954.
    
    There were actually three places where tuple occ-names
    were parsed:
      - IfaceEnv.lookupOrigNameCache
      - Convert.isBuiltInOcc
      - OccName.isTupleOcc_maybe
    
    I combined all three into TysWiredIn.isBuiltInOcc_maybe
    Much nicer.


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

750271e61bdbaad50c19176406512e79abe404a8
 compiler/basicTypes/OccName.lhs |   53 ---------------------
 compiler/hsSyn/Convert.lhs      |   25 ++--------
 compiler/iface/IfaceEnv.lhs     |   40 +++++++++-------
 compiler/prelude/PrelNames.lhs  |   97 ++++++++++++++++++++++-----------------
 compiler/prelude/TysWiredIn.lhs |   70 ++++++++++++++++++++++++++--
 testsuite/tests/th/T8954.hs     |   15 ++++++
 testsuite/tests/th/all.T        |    1 +
 7 files changed, 166 insertions(+), 135 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 750271e61bdbaad50c19176406512e79abe404a8


More information about the ghc-commits mailing list