Treat pattern-synonym binders more consistently
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 1 Jun 2015 22:42:10 +0000 (23:42 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 1 Jun 2015 23:50:44 +0000 (00:50 +0100)
commit11d8f84fd3237c3821c8f826716fc4c9adfccb8c
treee0158f59a9fb5062e26d1c4edb4a0ed8af3ee724
parent2f0011aca137055f139bed484302679c10238d55
Treat pattern-synonym binders more consistently

Pattern-synonyms are in value declarations, but were being
bound by getLocalNonValBinders.  This seemed odd, and indeed
staightening it out allowed me to remove a field from
TopSigCtxt.

The main changes are in RnSource.rnSrcDecls.

Nice.
compiler/hsSyn/HsUtils.hs
compiler/rename/RnBinds.hs
compiler/rename/RnEnv.hs
compiler/rename/RnNames.hs
compiler/rename/RnSource.hs
compiler/typecheck/TcDeriv.hs