summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2016-12-21 11:44:04 -0500
committerRyan Scott <ryan.gl.scott@gmail.com>2016-12-21 11:44:04 -0500
commit2189239872322dc363cc5f82e14ab5fb1a6d5b8c (patch)
treec031569795b3670c1f1a5ee0f6c4e21c6b488cf5
parentccc918cdc8b2d147c4dbc29bfc87c058862a97cd (diff)
downloadhaskell-2189239872322dc363cc5f82e14ab5fb1a6d5b8c.tar.gz
Disambiguate two Notes with identical names
It turns out there were two Notes in the GHC codebase named [Pattern synonym signatures]. To avoid confusion, I gave one Note a slightly different name.
-rw-r--r--compiler/basicTypes/PatSyn.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/basicTypes/PatSyn.hs b/compiler/basicTypes/PatSyn.hs
index 774879ed20..823c838c05 100644
--- a/compiler/basicTypes/PatSyn.hs
+++ b/compiler/basicTypes/PatSyn.hs
@@ -48,7 +48,7 @@ import Data.List
-- | Pattern Synonym
--
-- See Note [Pattern synonym representation]
--- See Note [Pattern synonym signatures]
+-- See Note [Pattern synonym signature contexts]
data PatSyn
= MkPatSyn {
psName :: Name,
@@ -107,7 +107,7 @@ data PatSyn
-- See Note [Builder for pattern synonyms with unboxed type]
}
-{- Note [Pattern synonym signatures]
+{- Note [Pattern synonym signature contexts]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In a pattern synonym signature we write
pattern P :: req => prov => t1 -> ... tn -> res_ty