Remove docAlt.
parent
91cd6afbe6
commit
0401f314da
|
@ -145,20 +145,16 @@ createDerivingPar mDerivs mainDoc = do
|
||||||
case mDerivs of
|
case mDerivs of
|
||||||
Nothing -> docLines [mainDoc]
|
Nothing -> docLines [mainDoc]
|
||||||
Just (L _ [(HsIB _ t)]) -> do
|
Just (L _ [(HsIB _ t)]) -> do
|
||||||
docAlt
|
docPar mainDoc $ docEnsureIndent BrIndentRegular $ docSeq
|
||||||
[ docPar mainDoc $ docEnsureIndent BrIndentRegular $ docSeq
|
[docDeriving, docSeparator, layoutType t]
|
||||||
[docDeriving, docSeparator, layoutType t]
|
|
||||||
]
|
|
||||||
Just (L _ ts ) -> do
|
Just (L _ ts ) -> do
|
||||||
docAlt
|
docPar mainDoc $ docEnsureIndent BrIndentRegular $ docSeq
|
||||||
[ docPar mainDoc $ docEnsureIndent BrIndentRegular $ docSeq
|
[ docDeriving
|
||||||
[ docDeriving
|
, docSeparator
|
||||||
, docSeparator
|
, docLit $ Text.pack "("
|
||||||
, docLit $ Text.pack "("
|
, docSeq $ List.intersperse docCommaSep $ ts <&> \(HsIB _ t) ->
|
||||||
, docSeq $ List.intersperse docCommaSep $ ts <&> \(HsIB _ t) ->
|
layoutType t
|
||||||
layoutType t
|
, docLit $ Text.pack ")"
|
||||||
, docLit $ Text.pack ")"
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
|
|
||||||
docDeriving :: ToBriDocM BriDocNumbered
|
docDeriving :: ToBriDocM BriDocNumbered
|
||||||
|
|
Loading…
Reference in New Issue