Revert "Allow as-patterns in pattern synonym declarations."
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 21 Dec 2015 10:34:41 +0000 (10:34 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 23 Dec 2015 07:46:37 +0000 (07:46 +0000)
commit48e06346805ab882a54088e01e5224111182f5df
treeed52387b775ec3e58d773eb0cd625a2aeff53ede
parent5f08681639814bd3ff383b56734bba76d06a3cdc
Revert "Allow as-patterns in pattern synonym declarations."

I'm reverting this until we agree a design.
See comment:5 in Trac #9793.

Incidentally the reference to Trac #9739 in the reverted
patch is bogus; it shold have said #9793.

This reverts commit 44640af7afa1a01ff2e2357f7c1436b4804866fc.
compiler/hsSyn/HsPat.hs
compiler/typecheck/TcPatSyn.hs
testsuite/tests/patsyn/should_compile/T9793.hs [deleted file]
testsuite/tests/patsyn/should_compile/all.T
testsuite/tests/patsyn/should_fail/T9793-fail.hs [deleted file]
testsuite/tests/patsyn/should_fail/T9793-fail.stderr [deleted file]
testsuite/tests/patsyn/should_fail/all.T
testsuite/tests/patsyn/should_fail/as-pattern.stderr