[commit: ghc] master: Refactor RecordPatSynField, FieldLabel (3dce4f2)

git at git.haskell.org git at git.haskell.org
Thu Apr 28 16:32:34 UTC 2016


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

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

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

commit 3dce4f2db4058cc097156fc0c0afe1a5b66b9409
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Apr 28 15:52:29 2016 +0100

    Refactor RecordPatSynField, FieldLabel
    
    This patch uses the named fields of
     * FieldLabel
     * RecordPatSynField
    in construction and pattern matching. The fields
    existed before, but we were often using positional notation.
    
    Also a minor refactor of the API of mkPatSynRecSelBinds
    
    No change in functionality


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

3dce4f2db4058cc097156fc0c0afe1a5b66b9409
 compiler/basicTypes/FieldLabel.hs |  3 ++-
 compiler/basicTypes/RdrName.hs    | 16 ++++++++++++----
 compiler/hsSyn/HsBinds.hs         | 20 +++++++++++++-------
 compiler/rename/RnBinds.hs        | 10 ++++++----
 compiler/rename/RnSource.hs       |  8 +++-----
 compiler/typecheck/TcPatSyn.hs    | 30 ++++++++++++++----------------
 compiler/typecheck/TcTyDecls.hs   |  2 +-
 7 files changed, 51 insertions(+), 38 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 3dce4f2db4058cc097156fc0c0afe1a5b66b9409


More information about the ghc-commits mailing list