ltext :: TL.Text -> d
catH :: Foldable f => f d -> d
catV :: Foldable f => f d -> d
+ unwords :: Foldable f => f d -> d
+ unlines :: Foldable f => f d -> d
foldrWith :: Foldable f => (d -> d -> d) -> f d -> d
foldWith :: Foldable f => (d -> d) -> f d -> d
intercalate :: Foldable f => d -> f d -> d
ltext = catV . fmap ltextH . TL.lines
catH = foldr (<>) empty
catV = foldrWith (\x y -> x<>newline<>y)
+ unwords = foldr (<>) space
+ unlines = foldr (\x y -> x<>newline<>y) empty
foldrWith f ds = if null ds then empty else foldr1 f ds
foldWith f = foldrWith $ \a acc -> a <> f acc
intercalate sep = foldrWith (\x y -> x<>sep<>y)
-- PVP: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
-version: 0.1.0.20180208
+version: 0.1.1.20180331
category: Text
synopsis: Document symantics.
description: Symantics for generating documents.