[commit: ghc] master: TcPatSyn: Fix spelling of "pattern" in error message (99cb627)

git at git.haskell.org git at git.haskell.org
Tue Feb 9 14:41:23 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/99cb627a45afacde5f86799671c53baf81daee41/ghc

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

commit 99cb627a45afacde5f86799671c53baf81daee41
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


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

99cb627a45afacde5f86799671c53baf81daee41
 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 f3aaa23..6a59f71 100644
--- a/compiler/typecheck/TcPatSyn.hs
+++ b/compiler/typecheck/TcPatSyn.hs
@@ -362,7 +362,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