[commit: ghc] ghc-8.0: TcPatSyn: Fix spelling of "pattern" in error message (7346013)

git at git.haskell.org git at git.haskell.org
Thu Feb 11 15:30:24 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/7346013945a0d5a3fd18210f41f4d3b147729b48/ghc

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

commit 7346013945a0d5a3fd18210f41f4d3b147729b48
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Feb 9 14:42:01 2016 +0100

    TcPatSyn: Fix spelling of "pattern" in error message
    
    (cherry picked from commit 99cb627a45afacde5f86799671c53baf81daee41)


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

7346013945a0d5a3fd18210f41f4d3b147729b48
 compiler/typecheck/TcPatSyn.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/typecheck/TcPatSyn.hs b/compiler/typecheck/TcPatSyn.hs
index ed7d22e..2bd9526 100644
--- a/compiler/typecheck/TcPatSyn.hs
+++ b/compiler/typecheck/TcPatSyn.hs
@@ -365,7 +365,7 @@ addPatSynCtxt (L loc name) thing_inside
 
 wrongNumberOfParmsErr :: Name -> Arity -> Arity -> SDoc
 wrongNumberOfParmsErr name decl_arity ty_arity
-  = hang (text "Patten synonym" <+> quotes (ppr name) <+> ptext (sLit "has")
+  = hang (text "Pattern synonym" <+> quotes (ppr name) <+> ptext (sLit "has")
           <+> speakNOf decl_arity (text "argument"))
        2 (text "but its type signature has" <+> speakN ty_arity)
 



More information about the ghc-commits mailing list