~jaro/balkon

462afb29bdb429483f49de96b857f6e94b2df2a5 — Jaro 1 year, 7 months ago 2eb2cd0
Better format ParagraphConstruction documentation.
1 files changed, 6 insertions(+), 4 deletions(-)

M lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs
M lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs => lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs +6 -4
@@ 1,12 1,14 @@
-- | Infix operators for construction of paragraphs with readable code.
--
-- Example construction:
-- @en = (,) SpanOptions { spanLanguage = "en" }@
-- @ja = (,) SpanOptions { spanLanguage = "ja" }@
-- @"ignored prefix" |\< en "one two " \>|\< ja "三四" \>| "ignored suffix"@
--
-- > let en = (,) SpanOptions { spanLanguage = "en" }
-- >     ja = (,) SpanOptions { spanLanguage = "ja" }
-- > in "ignored prefix" |< en "one two " >|< ja "三四" >| "ignored suffix"
--
-- Special syntax for paragraphs with no contents:
-- @"ignored prefix" |<>| "ignored suffix"@
--
-- > "ignored prefix" |<>| "ignored suffix"
module Data.Text.ParagraphLayout.ParagraphConstruction
    ((>|)
    ,(>|<)