[commit: ghc] master: Add Location to RdrName in FieldOcc (d8ed20c)

git at git.haskell.org git at git.haskell.org
Mon Dec 21 10:12:11 UTC 2015


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

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

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

commit d8ed20c8772bee5eb83719c804121374157cf9b6
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Sun Dec 20 10:56:24 2015 +0200

    Add Location to RdrName in FieldOcc
    
    Summary:
    Post #11019, there have been some new instances of RdrName that are not
    located, in particular
    
    ```#!hs
    data FieldOcc name = FieldOcc { rdrNameFieldOcc  :: RdrName
                                  , selectorFieldOcc :: PostRn name name
                                  }
    
    data AmbiguousFieldOcc name
      = Unambiguous RdrName (PostRn name name)
      | Ambiguous   RdrName (PostTc name name)
      deriving (Typeable)
    ```
    Add locations to them
    
    Updates haddock submodule to match
    
    Test Plan: ./validate
    
    Reviewers: goldfire, hvr, bgamari, austin
    
    Reviewed By: hvr
    
    Subscribers: hvr, thomie, mpickering
    
    Differential Revision: https://phabricator.haskell.org/D1670
    
    GHC Trac Issues: #11258


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

d8ed20c8772bee5eb83719c804121374157cf9b6
 compiler/hsSyn/Convert.hs       | 21 +++++++++++++--------
 compiler/hsSyn/HsTypes.hs       | 16 +++++++++-------
 compiler/hsSyn/HsUtils.hs       |  7 +++++--
 compiler/parser/Parser.y        |  6 +++---
 compiler/rename/RnEnv.hs        | 16 +++++++++++-----
 compiler/rename/RnExpr.hs       |  3 ++-
 compiler/rename/RnNames.hs      |  4 ++--
 compiler/rename/RnPat.hs        | 19 ++++++++++++-------
 compiler/rename/RnSource.hs     |  2 +-
 compiler/rename/RnTypes.hs      |  2 +-
 compiler/typecheck/TcExpr.hs    | 27 ++++++++++++++++-----------
 compiler/typecheck/TcPat.hs     |  6 ++++--
 compiler/typecheck/TcTyDecls.hs |  4 ++--
 utils/haddock                   |  2 +-
 14 files changed, 82 insertions(+), 53 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 d8ed20c8772bee5eb83719c804121374157cf9b6


More information about the ghc-commits mailing list