From 462afb29bdb429483f49de96b857f6e94b2df2a5 Mon Sep 17 00:00:00 2001 From: Jaro Date: Tue, 28 Mar 2023 09:57:45 +0200 Subject: [PATCH] Better format ParagraphConstruction documentation. --- lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs b/lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs index f89448e..0b094f2 100644 --- a/lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs +++ b/lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs @@ -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 ((>|) ,(>|<) -- 2.30.2