Remove an unnecessary node in BriDoc construction; Add TODO
parent
f6859d184f
commit
9e8571b848
|
@ -419,6 +419,8 @@ layoutExpr lexpr@(L _ expr) = do
|
||||||
case indentPolicy of
|
case indentPolicy of
|
||||||
IndentPolicyLeft -> BrIndentRegular
|
IndentPolicyLeft -> BrIndentRegular
|
||||||
_ -> BrIndentSpecial 3
|
_ -> BrIndentSpecial 3
|
||||||
|
-- TODO: some of the alternatives (especially last and last-but-one)
|
||||||
|
-- overlap.
|
||||||
docAltFilter
|
docAltFilter
|
||||||
[ -- if _ then _ else _
|
[ -- if _ then _ else _
|
||||||
(,) (not hasComments)
|
(,) (not hasComments)
|
||||||
|
@ -447,8 +449,7 @@ layoutExpr lexpr@(L _ expr) = do
|
||||||
$ docSetParSpacing
|
$ docSetParSpacing
|
||||||
$ docAddBaseY BrIndentRegular
|
$ docAddBaseY BrIndentRegular
|
||||||
$ docPar
|
$ docPar
|
||||||
( docAddBaseY maySpecialIndent
|
( docSeq
|
||||||
$ docSeq
|
|
||||||
[ docNodeAnnKW lexpr Nothing $ appSep $ docLit $ Text.pack "if"
|
[ docNodeAnnKW lexpr Nothing $ appSep $ docLit $ Text.pack "if"
|
||||||
, docNodeAnnKW lexpr (Just AnnIf) $ docForceSingleline ifExprDoc
|
, docNodeAnnKW lexpr (Just AnnIf) $ docForceSingleline ifExprDoc
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue