@@ -80,10 +80,10 @@ p_match style Match {..} = do
8080 inci' (velt' (located' p_pat <$> m_pats))
8181 return inci'
8282 inci' $ do
83− space
8483 let GRHSs {..} = m_grhss
85− unless (length grhssGRHSs > 1) . txt $
86− case style of
84+ unless (length grhssGRHSs > 1) $ do
85+ space
86+ txt $ case style of
8787 Function _ -> "="
8888 _ -> "->"
8989 let combinedSpans = combineSrcSpans' $
@@ -101,9 +101,6 @@ p_match style Match {..} = do
101101 line (txt "where")
102102 inci (located grhssLocalBinds p_hsLocalBinds)
103103
104−getGRHSSpan :: GRHS GhcPs (LHsExpr GhcPs) -> SrcSpan
105−getGRHSSpan (GRHS _ body) = getSpan body
106−
107104p_grhs :: GRHS GhcPs (LHsExpr GhcPs) -> R ()
108105p_grhs (GRHS guards body) =
109106 case guards of
@@ -111,9 +108,9 @@ p_grhs (GRHS guards body) =
111108 xs -> do
112109 txt "| "
113110 velt $ withSep comma (located' p_stmt) xs
114− txt " ->"
111+ txt " ="
115112 breakpoint
116− p_body
113+ inci p_body
117114 where
118115 p_body = located body p_hsExpr
119116
@@ -237,3 +234,9 @@ p_hsExpr = \case
237234 EViewPat {} -> notImplemented "EViewPat"
238235 ELazyPat {} -> notImplemented "ELazyPat"
239236 HsWrap {} -> notImplemented "HsWrap"
237+
238+----------------------------------------------------------------------------
239+-- Helpers
240+
241+getGRHSSpan :: GRHS GhcPs (LHsExpr GhcPs) -> SrcSpan
242+getGRHSSpan (GRHS _ body) = getSpan body