Allow pattern synonyms which have several clauses.
authorMatthew Pickering <matthewtpickering@gmail.com>
Fri, 15 Jan 2016 16:40:51 +0000 (17:40 +0100)
committerBen Gamari <ben@smart-cactus.org>
Fri, 15 Jan 2016 16:40:53 +0000 (17:40 +0100)
commit443bf04485f997be2e3a744102605645c54e9d61
tree64263d6fbd12559047a63104a6368642cf20d1dc
parent67fc3f3a290476eb65626897e6f80090dbdc04f8
Allow pattern synonyms which have several clauses.

But still disallow empty pattern synonym builder declarations. Handling
this incorrectly was the cause of #11367.

Test Plan: ./validate

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1779

GHC Trac Issues: #11367
compiler/parser/RdrHsSyn.hs
testsuite/tests/patsyn/should_compile/T11367.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/all.T