Add TH support for pattern synonyms (fixes #8761)
authorDominik Bollmann <bollmann@seas.upenn.edu>
Wed, 11 May 2016 13:55:13 +0000 (15:55 +0200)
committerBen Gamari <ben@smart-cactus.org>
Thu, 12 May 2016 13:39:30 +0000 (15:39 +0200)
commitc079de3c43704ea88f592e441389e520313e30ad
treea3d85f9118ec73abdc7058b8c3123afc18bf9360
parente21728736d2ca0d65da9e84c18a12c2f29c116ee
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
20 files changed:
compiler/deSugar/DsMeta.hs
compiler/hsSyn/Convert.hs
compiler/hsSyn/HsTypes.hs
compiler/hsSyn/HsUtils.hs
compiler/prelude/THNames.hs
compiler/typecheck/TcSplice.hs
libraries/ghci/GHCi/TH/Binary.hs
libraries/template-haskell/Language/Haskell/TH.hs
libraries/template-haskell/Language/Haskell/TH/Lib.hs
libraries/template-haskell/Language/Haskell/TH/Ppr.hs
libraries/template-haskell/Language/Haskell/TH/PprLib.hs
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
testsuite/tests/quotes/T8759a.stderr [deleted file]
testsuite/tests/quotes/all.T
testsuite/tests/th/T10019.stdout
testsuite/tests/th/T8759.stderr
testsuite/tests/th/T8761.hs [new file with mode: 0644]
testsuite/tests/th/T8761.stderr [new file with mode: 0644]
testsuite/tests/th/T9064.stderr
testsuite/tests/th/all.T