on master help sign in
Minor refactoring in ‘p_typeSig’
06f2cf4Mark Karpov
src/Ormolu/Printer/Meat/Declaration/Signature.hs+4−6
@@ -48,12 +48,10 @@ p_typeSig indentTail (n : ns) hswc = do
48 p_rdrName n
48 p_rdrName n
49 if null ns
49 if null ns
50 then p_typeAscription hswc
50 then p_typeAscription hswc
51− else do
52− comma
53− breakpoint
54− bool id inci indentTail $ do
51+ else bool id inci indentTail $ do
52+ commaDel
55− sep commaDel p_rdrName ns
53+ sep commaDel p_rdrName ns
56− p_typeAscription hswc
54+ p_typeAscription hswc
57
55
58p_typeAscription ::
56p_typeAscription ::
59 LHsSigWcType GhcPs ->
57 LHsSigWcType GhcPs ->