Don't allow orphan COMPLETE pragmas (#13349)
authorReid Barton <rwbarton@gmail.com>
Thu, 2 Mar 2017 21:29:55 +0000 (16:29 -0500)
committerBen Gamari <ben@smart-cactus.org>
Fri, 3 Mar 2017 00:58:01 +0000 (19:58 -0500)
commitfce3d37c367346c67467ce3d56bc015fa9ed6062
treeb387645cf5ee628f67bfede42b6f77e432c667fa
parent0b922909121f6a812d2861a29d0d0d3c7e2fcfce
Don't allow orphan COMPLETE pragmas (#13349)

We might support them properly in the future, but for now it's simpler
to disallow them.

Test Plan: validate

Reviewers: mpickering, austin, bgamari, simonpj

Reviewed By: mpickering, simonpj

Subscribers: simonpj, thomie

Differential Revision: https://phabricator.haskell.org/D3243
compiler/rename/RnBinds.hs
docs/users_guide/glasgow_exts.rst
testsuite/tests/patsyn/should_compile/T13349b.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/all.T
testsuite/tests/patsyn/should_fail/T13349.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_fail/T13349.stderr [new file with mode: 0644]
testsuite/tests/patsyn/should_fail/all.T