Skip to content
Snippets Groups Projects
Commit 4348e0b4 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix missing backticks and parentheses in error messages; fixes #7734

Patch from monoidal
parent 59d2216e
No related branches found
No related tags found
No related merge requests found
...@@ -910,7 +910,7 @@ pprMatch ctxt (Match pats maybe_ty grhss) ...@@ -910,7 +910,7 @@ pprMatch ctxt (Match pats maybe_ty grhss)
(herald, other_pats) (herald, other_pats)
= case ctxt of = case ctxt of
FunRhs fun is_infix FunRhs fun is_infix
| not is_infix -> (ppr fun, pats) | not is_infix -> (pprPrefixOcc fun, pats)
-- f x y z = e -- f x y z = e
-- Not pprBndr; the AbsBinds will -- Not pprBndr; the AbsBinds will
-- have printed the signature -- have printed the signature
...@@ -921,7 +921,7 @@ pprMatch ctxt (Match pats maybe_ty grhss) ...@@ -921,7 +921,7 @@ pprMatch ctxt (Match pats maybe_ty grhss)
| otherwise -> (parens pp_infix, pats2) | otherwise -> (parens pp_infix, pats2)
-- (x &&& y) z = e -- (x &&& y) z = e
where where
pp_infix = pprParendLPat pat1 <+> ppr fun <+> pprParendLPat pat2 pp_infix = pprParendLPat pat1 <+> pprInfixOcc fun <+> pprParendLPat pat2
LambdaExpr -> (char '\\', pats) LambdaExpr -> (char '\\', pats)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment