[commit: ghc] master: Add TH support for pattern synonyms (fixes #8761) (c079de3)

git at git.haskell.org git at git.haskell.org
Thu May 12 13:40:03 UTC 2016


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

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

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

commit c079de3c43704ea88f592e441389e520313e30ad
Author: Dominik Bollmann <bollmann at seas.upenn.edu>
Date:   Wed May 11 15:55:13 2016 +0200

    Add TH support for pattern synonyms (fixes #8761)
    
    This commit adds Template Haskell support for pattern synonyms as
    requested by trac ticket #8761.
    
    Test Plan: ./validate
    
    Reviewers: thomie, jstolarek, osa1, RyanGlScott, mpickering, austin,
    goldfire, bgamari
    
    Reviewed By: goldfire, bgamari
    
    Subscribers: rdragon
    
    Differential Revision: https://phabricator.haskell.org/D1940
    
    GHC Trac Issues: #8761


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

c079de3c43704ea88f592e441389e520313e30ad
 compiler/deSugar/DsMeta.hs                         | 129 +++++++++++++--
 compiler/hsSyn/Convert.hs                          | 108 ++++++++++++-
 compiler/hsSyn/HsTypes.hs                          |  25 ++-
 compiler/hsSyn/HsUtils.hs                          |  38 ++---
 compiler/prelude/THNames.hs                        | 174 ++++++++++++---------
 compiler/typecheck/TcSplice.hs                     |  21 ++-
 libraries/ghci/GHCi/TH/Binary.hs                   |   2 +
 libraries/template-haskell/Language/Haskell/TH.hs  |  12 +-
 .../template-haskell/Language/Haskell/TH/Lib.hs    |  39 ++++-
 .../template-haskell/Language/Haskell/TH/Ppr.hs    |  65 ++++++--
 .../template-haskell/Language/Haskell/TH/PprLib.hs |   0
 .../template-haskell/Language/Haskell/TH/Syntax.hs |  92 ++++++++++-
 testsuite/tests/quotes/T8759a.stderr               |   4 -
 testsuite/tests/quotes/all.T                       |   2 +-
 testsuite/tests/th/T10019.stdout                   |   2 +-
 testsuite/tests/th/T8759.stderr                    |   4 +-
 testsuite/tests/th/T8761.hs                        | 111 +++++++++++++
 testsuite/tests/th/T8761.stderr                    | 158 +++++++++++++++++++
 testsuite/tests/th/T9064.stderr                    |   5 +-
 testsuite/tests/th/all.T                           |   4 +-
 20 files changed, 832 insertions(+), 163 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 c079de3c43704ea88f592e441389e520313e30ad


More information about the ghc-commits mailing list