~jaro/balkon

ref: 9927e551b32660d4bc536bd0b5aa1b3222613c4b balkon/lib/Data/Text/ParagraphLayout/ParagraphConstruction.hs -rw-r--r-- 583 bytes
9927e551 β€” Jaro Add line numbers to laid out fragments. 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- | Infix operators for construction of paragraphs with readable code.
--
-- Example construction:
--
-- > let en = (,) defaultSpanOptions { spanLanguage = "en" }
-- >     ja = (,) defaultSpanOptions { spanLanguage = "ja" }
-- > in "ignored prefix" |< en "one two " >|< ja "δΈ‰ε››" >| "ignored suffix"
--
-- Special syntax for paragraphs with no contents:
--
-- > "ignored prefix" |<>| "ignored suffix"
module Data.Text.ParagraphLayout.ParagraphConstruction
    ( (>|)
    , (>|<)
    , (|<)
    , (|<>|)
    )
where

import Data.Text.ParagraphLayout.Internal.ParagraphConstruction