[commit: ghc] master: Disambiguate two Notes with identical names (2189239)

git at git.haskell.org git at git.haskell.org
Wed Dec 21 16:47:59 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2189239872322dc363cc5f82e14ab5fb1a6d5b8c/ghc

>---------------------------------------------------------------

commit 2189239872322dc363cc5f82e14ab5fb1a6d5b8c
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date:   Wed Dec 21 11:44:04 2016 -0500

    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.


>---------------------------------------------------------------

2189239872322dc363cc5f82e14ab5fb1a6d5b8c
 compiler/basicTypes/PatSyn.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/basicTypes/PatSyn.hs b/compiler/basicTypes/PatSyn.hs
index 774879e..823c838 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



More information about the ghc-commits mailing list