| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Text.ParagraphLayout.ParagraphConstruction
Description
Infix operators for construction of paragraphs with readable code.
Example construction:
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"