summaryrefslogtreecommitdiff
path: root/compiler/GHC/Hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Hs')
-rw-r--r--compiler/GHC/Hs/Expr.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/GHC/Hs/Expr.hs b/compiler/GHC/Hs/Expr.hs
index accdd189ec..e4ce67d5cf 100644
--- a/compiler/GHC/Hs/Expr.hs
+++ b/compiler/GHC/Hs/Expr.hs
@@ -1406,6 +1406,10 @@ pprMatch (Match { m_pats = pats, m_ctxt = ctxt, m_grhss = grhss })
LambdaExpr -> (char '\\', pats)
+ ArrowMatchCtxt KappaExpr -> (char '\\', pats)
+
+ ArrowMatchCtxt ProcExpr -> (text "proc", pats)
+
_ -> case pats of
[] -> (empty, [])
[pat] -> (ppr pat, []) -- No parens around the single pat in a case