[commit: ghc] master: Fix form of note (3a0e5e0)
git at git.haskell.org
git at git.haskell.org
Tue Apr 11 02:19:47 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/3a0e5e0f1d9babf40d7fc372b2808da6947181e8/ghc
>---------------------------------------------------------------
commit 3a0e5e0f1d9babf40d7fc372b2808da6947181e8
Author: Ben Gamari <ben at smart-cactus.org>
Date: Mon Apr 10 21:35:06 2017 -0400
Fix form of note
>---------------------------------------------------------------
3a0e5e0f1d9babf40d7fc372b2808da6947181e8
compiler/rename/RnPat.hs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler/rename/RnPat.hs b/compiler/rename/RnPat.hs
index 3417494..4590fc7 100644
--- a/compiler/rename/RnPat.hs
+++ b/compiler/rename/RnPat.hs
@@ -249,7 +249,8 @@ report unused variables at the binding level. So we must use bindLocalNames
here, *not* bindLocalNameFV. Trac #3943.
-Note: [Don't report shadowing for pattern synonyms]
+Note [Don't report shadowing for pattern synonyms]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There is one special context where a pattern doesn't introduce any new binders -
pattern synonym declarations. Therefore we don't check to see if pattern
variables shadow existing identifiers as they are never bound to anything
More information about the ghc-commits
mailing list