[commit: ghc] master: Refactor HsExpr.RecordCon, RecordUpd (07eb258)

git at git.haskell.org git at git.haskell.org
Wed Nov 18 15:57:30 UTC 2015


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

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

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

commit 07eb258dfcbf8a67e4e931397128b7255356d19e
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Nov 18 15:57:13 2015 +0000

    Refactor HsExpr.RecordCon, RecordUpd
    
    This follows Matthew's patch making pattern synoyms work
    with records.
    
    This patch
     - replaces the (PostTc id [FieldLabel]) field of
       RecordCon with (PostTc id ConLike)
    
     - record-ises both RecordCon and RecordUpd, which
       both have quite a lot of fields.
    
    No change in behaviour


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

07eb258dfcbf8a67e4e931397128b7255356d19e
 compiler/deSugar/Coverage.hs  | 20 ++++++++------------
 compiler/deSugar/DsExpr.hs    | 40 ++++++++++++++++++++++------------------
 compiler/deSugar/DsMeta.hs    |  4 ++--
 compiler/hsSyn/Convert.hs     |  9 ++-------
 compiler/hsSyn/HsExpr.hs      | 37 +++++++++++++++++++------------------
 compiler/hsSyn/PlaceHolder.hs |  1 +
 compiler/parser/RdrHsSyn.hs   | 20 ++++++++++++++++----
 compiler/rename/RnExpr.hs     | 13 +++++++------
 compiler/typecheck/TcExpr.hs  | 16 ++++++++++------
 compiler/typecheck/TcHsSyn.hs | 14 +++++++++-----
 10 files changed, 96 insertions(+), 78 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 07eb258dfcbf8a67e4e931397128b7255356d19e


More information about the ghc-commits mailing list