Implement scoped type variables in pattern synonyms
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 15 Jan 2016 17:45:02 +0000 (17:45 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 18 Jan 2016 11:55:41 +0000 (11:55 +0000)
commite2c7b7ee976dcabf12002265ddbe58017b794cb8
treebe7754538ef3efda0e681b7084d97ba497721ffc
parent8e6a68d49a4f2ffd49990dc6b84135d93015d3f8
Implement scoped type variables in pattern synonyms

This fixes Trac #11351.   The implementation is pretty
simple, happily.

I took the opportunity to re-order the prov/req context
in builder-ids, which was confusingly backwards.
compiler/basicTypes/PatSyn.hs
compiler/deSugar/DsExpr.hs
compiler/rename/RnBinds.hs
compiler/typecheck/TcBinds.hs
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcPat.hs
compiler/typecheck/TcPatSyn.hs
compiler/typecheck/TcPatSyn.hs-boot
compiler/typecheck/TcRnTypes.hs
testsuite/tests/patsyn/should_compile/T11351.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/all.T