[commit: ghc] wip/codeowners-parser: Fix missing space in ppr_cmd for HsCmdArrForm (59516e4)

git at git.haskell.org git at git.haskell.org
Mon Feb 4 11:30:35 UTC 2019


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

On branch  : wip/codeowners-parser
Link       : http://ghc.haskell.org/trac/ghc/changeset/59516e4bbfc0baaa71c83fcd4493c27c422e5d57/ghc

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

commit 59516e4bbfc0baaa71c83fcd4493c27c422e5d57
Author: Vladislav Zavialov <vlad.z.4096 at gmail.com>
Date:   Sat Feb 2 17:30:05 2019 +0300

    Fix missing space in ppr_cmd for HsCmdArrForm


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

59516e4bbfc0baaa71c83fcd4493c27c422e5d57
 compiler/hsSyn/HsExpr.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/hsSyn/HsExpr.hs b/compiler/hsSyn/HsExpr.hs
index bae29b0..01ed872 100644
--- a/compiler/hsSyn/HsExpr.hs
+++ b/compiler/hsSyn/HsExpr.hs
@@ -1532,8 +1532,8 @@ ppr_cmd (HsCmdArrForm _ (L _ (HsConLikeOut _ c)) Infix _    [arg1, arg2])
   = hang (pprCmdArg (unLoc arg1)) 4 (sep [ pprInfixOcc (conLikeName c)
                                          , pprCmdArg (unLoc arg2)])
 ppr_cmd (HsCmdArrForm _ op _ _ args)
-  = hang (text "(|" <> ppr_lexpr op)
-         4 (sep (map (pprCmdArg.unLoc) args) <> text "|)")
+  = hang (text "(|" <+> ppr_lexpr op)
+         4 (sep (map (pprCmdArg.unLoc) args) <+> text "|)")
 ppr_cmd (XCmd x) = ppr x
 
 pprCmdArg :: (OutputableBndrId (GhcPass p)) => HsCmdTop (GhcPass p) -> SDoc



More information about the ghc-commits mailing list