Pattern synonyms: swap provided/required
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 28 Oct 2015 09:41:27 +0000 (09:41 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 28 Oct 2015 09:46:22 +0000 (09:46 +0000)
commit04b0a73a2a418e1ca9c282ab3f2b4fe216911fdd
tree9914155e4873cd7a1b3c3dcee8fe12119b2ddbf2
parent9fc2d777f53110040f48ab27643a16888fa377f5
Pattern synonyms: swap provided/required

This patch swaps the order of provided and required constraints in
a pattern signature, so it now goes

      pattern P :: req => prov => t1 -> ... tn -> res_ty

See the long discussion in Trac #10928.

I think I have found all the places, but I could have missed something
particularly in comments.

There is a Haddock changes; so a submodule update.
16 files changed:
compiler/basicTypes/PatSyn.hs
compiler/hsSyn/HsBinds.hs
compiler/iface/IfaceSyn.hs
compiler/iface/MkIface.hs
compiler/rename/RnBinds.hs
compiler/typecheck/TcBinds.hs
compiler/typecheck/TcPat.hs
docs/users_guide/glasgow_exts.rst
testsuite/tests/ghci/scripts/T8776.stdout
testsuite/tests/patsyn/should_compile/T10997_1a.hs
testsuite/tests/patsyn/should_compile/T10997a.hs
testsuite/tests/patsyn/should_compile/T8584-2.hs
testsuite/tests/patsyn/should_fail/T11010.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_fail/T11010.stderr [new file with mode: 0644]
testsuite/tests/patsyn/should_fail/all.T
utils/haddock