Data.Text.Prettyprint.Doc.Internal: exported symbols usage examples

Symbols

  • <+> No usage example found for this symbol :( Collapse [-]
    align See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
        -- position - in contrast to @'nest'@ which always aligns to the current
        -- nesting level. This deprives these functions from being \'optimal\'. In
        -- practice however they prove to be very useful. The functions in this
        -- section should be used with care, since they are more expensive than the
        -- other functions. For example, @'align'@ shouldn't be used to pretty print
        -- all top-level declarations of a language, but using @'hang'@ for let
        -- expressions is fine.
        align, hang, indent, encloseSep, list, tupled,
    
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    

    alterAnnotations See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        --
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    
        -- * Named characters
        --
        -- | Convenience definitions for common characters
        lparen, rparen, langle, rangle, lbrace, rbrace, lbracket, rbracket, squote,
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
        alterAnnotationsS,
    
        -- * Optimization
    

    alterAnnotationsS See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Named characters
        --
        -- | Convenience definitions for common characters
        lparen, rparen, langle, rangle, lbrace, rbrace, lbracket, rbracket, squote,
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
        alterAnnotationsS,
    
        -- * Optimization
        --
        -- Render documents faster
        fuse, FusionDepth(..),
    

    annotate See 5 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        plural, enclose, surround,
    
        -- * Bracketing functions
        --
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    
        -- * Named characters
        --
        -- | Convenience definitions for common characters
        lparen, rparen, langle, rangle, lbrace, rbrace, lbracket, rbracket, squote,
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
                    Ansi.Yellow  -> NewTerm.Yellow
                    Ansi.Blue    -> NewTerm.Blue
                    Ansi.Magenta -> NewTerm.Magenta
                    Ansi.Cyan    -> NewTerm.Cyan
                    Ansi.White   -> NewTerm.White )
    
            in New.annotate (convertColor color) (go x)
        Old.Intensify intensity x -> case intensity of
            Ansi.BoldIntensity   -> New.annotate NewTerm.bold (go x)
            Ansi.FaintIntensity  -> go x
            Ansi.NormalIntensity -> go x
        Old.Italicize i x -> case i of
            False -> go x
            True  -> New.annotate NewTerm.italicized (go x)
        Old.Underline _ x -> New.annotate NewTerm.underlined (go x)
        Old.RestoreFormat{} -> error "Malformed input: RestoreFormat mayb only be used during rendering. Please report this as a bug."
      where
        go = fromAnsiWlPprint
    
    -- | @prettyprinter ───▷ ansi-wl-pprint@
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
                    Ansi.Green   -> NewTerm.Green
                    Ansi.Yellow  -> NewTerm.Yellow
                    Ansi.Blue    -> NewTerm.Blue
                    Ansi.Magenta -> NewTerm.Magenta
                    Ansi.Cyan    -> NewTerm.Cyan
                    Ansi.White   -> NewTerm.White )
    
            in New.annotate (convertColor color) (go x)
        Old.Intensify intensity x -> case intensity of
            Ansi.BoldIntensity   -> New.annotate NewTerm.bold (go x)
            Ansi.FaintIntensity  -> go x
            Ansi.NormalIntensity -> go x
        Old.Italicize i x -> case i of
            False -> go x
            True  -> New.annotate NewTerm.italicized (go x)
        Old.Underline _ x -> New.annotate NewTerm.underlined (go x)
        Old.RestoreFormat{} -> error "Malformed input: RestoreFormat mayb only be used during rendering. Please report this as a bug."
      where
        go = fromAnsiWlPprint
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
                convertColor :: Ansi.Color -> NewTerm.AnsiStyle
                convertColor c = convertLayerIntensity layer intensity (case c of
                    Ansi.Black   -> NewTerm.Black
                    Ansi.Red     -> NewTerm.Red
                    Ansi.Green   -> NewTerm.Green
                    Ansi.Yellow  -> NewTerm.Yellow
                    Ansi.Blue    -> NewTerm.Blue
                    Ansi.Magenta -> NewTerm.Magenta
                    Ansi.Cyan    -> NewTerm.Cyan
                    Ansi.White   -> NewTerm.White )
    
            in New.annotate (convertColor color) (go x)
        Old.Intensify intensity x -> case intensity of
            Ansi.BoldIntensity   -> New.annotate NewTerm.bold (go x)
            Ansi.FaintIntensity  -> go x
            Ansi.NormalIntensity -> go x
        Old.Italicize i x -> case i of
            False -> go x
            True  -> New.annotate NewTerm.italicized (go x)
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
                convertLayerIntensity Ansi.Foreground Ansi.Vivid = NewTerm.color
                convertLayerIntensity Ansi.Background Ansi.Vivid = NewTerm.bgColor
    
                convertColor :: Ansi.Color -> NewTerm.AnsiStyle
                convertColor c = convertLayerIntensity layer intensity (case c of
                    Ansi.Black   -> NewTerm.Black
                    Ansi.Red     -> NewTerm.Red
                    Ansi.Green   -> NewTerm.Green
                    Ansi.Yellow  -> NewTerm.Yellow
                    Ansi.Blue    -> NewTerm.Blue
                    Ansi.Magenta -> NewTerm.Magenta
                    Ansi.Cyan    -> NewTerm.Cyan
                    Ansi.White   -> NewTerm.White )
    
            in New.annotate (convertColor color) (go x)
        Old.Intensify intensity x -> case intensity of
            Ansi.BoldIntensity   -> New.annotate NewTerm.bold (go x)
            Ansi.FaintIntensity  -> go x
            Ansi.NormalIntensity -> go x
        Old.Italicize i x -> case i of
    

    cat See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
    

    changesUponFlattening No usage example found for this symbol :( Collapse [-]
    column See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    

    concatWith See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- other functions. For example, @'align'@ shouldn't be used to pretty print
        -- all top-level declarations of a language, but using @'hang'@ for let
        -- expressions is fine.
        align, hang, indent, encloseSep, list, tupled,
    
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
    

    defaultLayoutOptions See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Optimization
        --
        -- Render documents faster
        fuse, FusionDepth(..),
    
        -- * Layout
        --
        -- | Laying a 'Doc'ument out produces a straightforward 'SimpleDocStream'
        -- based on parameters such as page width and ribbon size, by evaluating how
        -- a 'Doc' fits these constraints the best. There are various ways to render
        -- a 'SimpleDocStream'. For the common case of rendering a 'SimpleDocStream'
        -- as plain 'Text' take a look at "Data.Text.Prettyprint.Doc.Render.Text".
        SimpleDocStream(..),
        PageWidth(..), LayoutOptions(..), defaultLayoutOptions,
        layoutPretty, layoutCompact, layoutSmart,
        removeTrailingWhitespace,
    
        -- * Migration guide
        --
    

    emptyDoc See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    enclose See 7 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    
        -- * General convenience
        --
        -- | Useful helper functions.
        plural, enclose, surround,
    
        -- * Bracketing functions
        --
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    

    Found in Data.Text.Prettyprint.Doc.Symbols.Ascii from the package prettyprinter
    -- | >>> angles "·"
    -- <·>
    angles :: Doc ann -> Doc ann
    angles = enclose langle rangle
    
    -- | >>> brackets "·"
    -- [·]
    brackets :: Doc ann -> Doc ann
    brackets = enclose lbracket rbracket
    
    -- | >>> braces "·"
    -- {·}
    braces :: Doc ann -> Doc ann
    braces = enclose lbrace rbrace
    
    -- | >>> squote
    -- '
    squote :: Doc ann
    squote = "'"
    

    Found in Data.Text.Prettyprint.Doc.Symbols.Ascii from the package prettyprinter
    -- | >>> parens "·"
    -- (·)
    parens :: Doc ann -> Doc ann
    parens = enclose lparen rparen
    
    -- | >>> angles "·"
    -- <·>
    angles :: Doc ann -> Doc ann
    angles = enclose langle rangle
    
    -- | >>> brackets "·"
    -- [·]
    brackets :: Doc ann -> Doc ann
    brackets = enclose lbracket rbracket
    
    -- | >>> braces "·"
    -- {·}
    braces :: Doc ann -> Doc ann
    braces = enclose lbrace rbrace
    

    Found in Data.Text.Prettyprint.Doc.Symbols.Ascii from the package prettyprinter
    -- | >>> dquotes "·"
    -- "·"
    dquotes :: Doc ann -> Doc ann
    dquotes = enclose dquote dquote
    
    -- | >>> parens "·"
    -- (·)
    parens :: Doc ann -> Doc ann
    parens = enclose lparen rparen
    
    -- | >>> angles "·"
    -- <·>
    angles :: Doc ann -> Doc ann
    angles = enclose langle rangle
    
    -- | >>> brackets "·"
    -- [·]
    brackets :: Doc ann -> Doc ann
    brackets = enclose lbracket rbracket
    

    Found in Data.Text.Prettyprint.Doc.Symbols.Ascii from the package prettyprinter
    -- | >>> squotes "·"
    -- '·'
    squotes :: Doc ann -> Doc ann
    squotes = enclose squote squote
    
    -- | >>> dquotes "·"
    -- "·"
    dquotes :: Doc ann -> Doc ann
    dquotes = enclose dquote dquote
    
    -- | >>> parens "·"
    -- (·)
    parens :: Doc ann -> Doc ann
    parens = enclose lparen rparen
    
    -- | >>> angles "·"
    -- <·>
    angles :: Doc ann -> Doc ann
    angles = enclose langle rangle
    

    Found in Data.Text.Prettyprint.Doc.Symbols.Ascii from the package prettyprinter
    import Data.Text.Prettyprint.Doc.Internal
    
    
    
    -- | >>> squotes "·"
    -- '·'
    squotes :: Doc ann -> Doc ann
    squotes = enclose squote squote
    
    -- | >>> dquotes "·"
    -- "·"
    dquotes :: Doc ann -> Doc ann
    dquotes = enclose dquote dquote
    
    -- | >>> parens "·"
    -- (·)
    parens :: Doc ann -> Doc ann
    parens = enclose lparen rparen
    

    Found in Data.Text.Prettyprint.Doc.Symbols.Ascii from the package prettyprinter
    -- | Common symbols composed out of the ASCII subset of Unicode. For non-ASCII
    -- symbols, see "Data.Text.Prettyprint.Doc.Symbols.Unicode".
    module Data.Text.Prettyprint.Doc.Symbols.Ascii where
    
    
    
    import Data.Text.Prettyprint.Doc.Internal
    
    
    
    -- | >>> squotes "·"
    -- '·'
    squotes :: Doc ann -> Doc ann
    squotes = enclose squote squote
    
    -- | >>> dquotes "·"
    -- "·"
    dquotes :: Doc ann -> Doc ann
    dquotes = enclose dquote dquote
    

    encloseSep See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
        -- position - in contrast to @'nest'@ which always aligns to the current
        -- nesting level. This deprives these functions from being \'optimal\'. In
        -- practice however they prove to be very useful. The functions in this
        -- section should be used with care, since they are more expensive than the
        -- other functions. For example, @'align'@ shouldn't be used to pretty print
        -- all top-level declarations of a language, but using @'hang'@ for let
        -- expressions is fine.
        align, hang, indent, encloseSep, list, tupled,
    
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    

    fill See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    
        -- * General convenience
        --
        -- | Useful helper functions.
        plural, enclose, surround,
    

    fillBreak See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    
        -- * General convenience
        --
        -- | Useful helper functions.
        plural, enclose, surround,
    

    fillCat See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
    

    fillSep See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
    

    flatAlt See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    fuse See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
        alterAnnotationsS,
    
        -- * Optimization
        --
        -- Render documents faster
        fuse, FusionDepth(..),
    
        -- * Layout
        --
        -- | Laying a 'Doc'ument out produces a straightforward 'SimpleDocStream'
        -- based on parameters such as page width and ribbon size, by evaluating how
    

    group See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    hang See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
        -- position - in contrast to @'nest'@ which always aligns to the current
        -- nesting level. This deprives these functions from being \'optimal\'. In
        -- practice however they prove to be very useful. The functions in this
        -- section should be used with care, since they are more expensive than the
        -- other functions. For example, @'align'@ shouldn't be used to pretty print
        -- all top-level declarations of a language, but using @'hang'@ for let
        -- expressions is fine.
        align, hang, indent, encloseSep, list, tupled,
    
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    

    hardline See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    hcat See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
    

    hsep See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
    

    indent See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
        -- position - in contrast to @'nest'@ which always aligns to the current
        -- nesting level. This deprives these functions from being \'optimal\'. In
        -- practice however they prove to be very useful. The functions in this
        -- section should be used with care, since they are more expensive than the
        -- other functions. For example, @'align'@ shouldn't be used to pretty print
        -- all top-level declarations of a language, but using @'hang'@ for let
        -- expressions is fine.
        align, hang, indent, encloseSep, list, tupled,
    
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    

    layoutCompact See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Optimization
        --
        -- Render documents faster
        fuse, FusionDepth(..),
    
        -- * Layout
        --
        -- | Laying a 'Doc'ument out produces a straightforward 'SimpleDocStream'
        -- based on parameters such as page width and ribbon size, by evaluating how
        -- a 'Doc' fits these constraints the best. There are various ways to render
        -- a 'SimpleDocStream'. For the common case of rendering a 'SimpleDocStream'
        -- as plain 'Text' take a look at "Data.Text.Prettyprint.Doc.Render.Text".
        SimpleDocStream(..),
        PageWidth(..), LayoutOptions(..), defaultLayoutOptions,
        layoutPretty, layoutCompact, layoutSmart,
        removeTrailingWhitespace,
    
        -- * Migration guide
        --
        -- $migration
    

    layoutPretty See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Optimization
        --
        -- Render documents faster
        fuse, FusionDepth(..),
    
        -- * Layout
        --
        -- | Laying a 'Doc'ument out produces a straightforward 'SimpleDocStream'
        -- based on parameters such as page width and ribbon size, by evaluating how
        -- a 'Doc' fits these constraints the best. There are various ways to render
        -- a 'SimpleDocStream'. For the common case of rendering a 'SimpleDocStream'
        -- as plain 'Text' take a look at "Data.Text.Prettyprint.Doc.Render.Text".
        SimpleDocStream(..),
        PageWidth(..), LayoutOptions(..), defaultLayoutOptions,
        layoutPretty, layoutCompact, layoutSmart,
        removeTrailingWhitespace,
    
        -- * Migration guide
        --
        -- $migration
    

    layoutSmart See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Optimization
        --
        -- Render documents faster
        fuse, FusionDepth(..),
    
        -- * Layout
        --
        -- | Laying a 'Doc'ument out produces a straightforward 'SimpleDocStream'
        -- based on parameters such as page width and ribbon size, by evaluating how
        -- a 'Doc' fits these constraints the best. There are various ways to render
        -- a 'SimpleDocStream'. For the common case of rendering a 'SimpleDocStream'
        -- as plain 'Text' take a look at "Data.Text.Prettyprint.Doc.Render.Text".
        SimpleDocStream(..),
        PageWidth(..), LayoutOptions(..), defaultLayoutOptions,
        layoutPretty, layoutCompact, layoutSmart,
        removeTrailingWhitespace,
    
        -- * Migration guide
        --
        -- $migration
    

    layoutWadlerLeijen No usage example found for this symbol :( Collapse [-]
    line See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    line' See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    list See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
        -- position - in contrast to @'nest'@ which always aligns to the current
        -- nesting level. This deprives these functions from being \'optimal\'. In
        -- practice however they prove to be very useful. The functions in this
        -- section should be used with care, since they are more expensive than the
        -- other functions. For example, @'align'@ shouldn't be used to pretty print
        -- all top-level declarations of a language, but using @'hang'@ for let
        -- expressions is fine.
        align, hang, indent, encloseSep, list, tupled,
    
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    

    nest See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    nesting See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    

    pageWidth See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    

    plural See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    
        -- * General convenience
        --
        -- | Useful helper functions.
        plural, enclose, surround,
    
        -- * Bracketing functions
        --
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    

    punctuate See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
    

    reAnnotate See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Bracketing functions
        --
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    
        -- * Named characters
        --
        -- | Convenience definitions for common characters
        lparen, rparen, langle, rangle, lbrace, rbrace, lbracket, rbracket, squote,
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
        alterAnnotationsS,
    

    reAnnotateS See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        squotes, dquotes, parens, angles, brackets, braces,
    
        -- * Named characters
        --
        -- | Convenience definitions for common characters
        lparen, rparen, langle, rangle, lbrace, rbrace, lbracket, rbracket, squote,
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
        alterAnnotationsS,
    
        -- * Optimization
        --
        -- Render documents faster
    

    removeTrailingWhitespace See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        --
        -- Render documents faster
        fuse, FusionDepth(..),
    
        -- * Layout
        --
        -- | Laying a 'Doc'ument out produces a straightforward 'SimpleDocStream'
        -- based on parameters such as page width and ribbon size, by evaluating how
        -- a 'Doc' fits these constraints the best. There are various ways to render
        -- a 'SimpleDocStream'. For the common case of rendering a 'SimpleDocStream'
        -- as plain 'Text' take a look at "Data.Text.Prettyprint.Doc.Render.Text".
        SimpleDocStream(..),
        PageWidth(..), LayoutOptions(..), defaultLayoutOptions,
        layoutPretty, layoutCompact, layoutSmart,
        removeTrailingWhitespace,
    
        -- * Migration guide
        --
        -- $migration
    ) where
    

    renderShowS See 5 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc.Render.String from the package prettyprinter
    module Data.Text.Prettyprint.Doc.Render.String (
        renderString,
        renderShowS,
    ) where
    
    import Data.Text.Prettyprint.Doc.Internal (SimpleDocStream, renderShowS)
    
    -- | Render a 'SimpleDocStream' to a 'String'.
    renderString :: SimpleDocStream ann -> String
    renderString s = renderShowS s ""
    

    Found in Data.Text.Prettyprint.Doc.Render.String from the package prettyprinter
    module Data.Text.Prettyprint.Doc.Render.String (
        renderString,
        renderShowS,
    ) where
    
    import Data.Text.Prettyprint.Doc.Internal (SimpleDocStream, renderShowS)
    
    -- | Render a 'SimpleDocStream' to a 'String'.
    renderString :: SimpleDocStream ann -> String
    renderString s = renderShowS s ""
    

    Found in Data.Text.Prettyprint.Doc.Render.String from the package prettyprinter
    module Data.Text.Prettyprint.Doc.Render.String (
        renderString,
        renderShowS,
    ) where
    
    import Data.Text.Prettyprint.Doc.Internal (SimpleDocStream, renderShowS)
    
    -- | Render a 'SimpleDocStream' to a 'String'.
    

    Found in Data.Text.Prettyprint.Doc.Render.ShowS from the package prettyprinter
    module Data.Text.Prettyprint.Doc.Render.ShowS {-# DEPRECATED "Use Data.Text.Prettyprint.Doc.Render.String instead" #-} (
        renderShowS
    ) where
    
    import Data.Text.Prettyprint.Doc.Internal (renderShowS)
    

    Found in Data.Text.Prettyprint.Doc.Render.ShowS from the package prettyprinter
    module Data.Text.Prettyprint.Doc.Render.ShowS {-# DEPRECATED "Use Data.Text.Prettyprint.Doc.Render.String instead" #-} (
        renderShowS
    ) where
    
    import Data.Text.Prettyprint.Doc.Internal (renderShowS)
    

    sep See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
    

    softline See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    softline' See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
    

    spaces No usage example found for this symbol :( Collapse [-]
    surround See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    
        -- * General convenience
        --
        -- | Useful helper functions.
        plural, enclose, surround,
    
        -- * Bracketing functions
        --
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    

    tupled See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
        -- functions. They align their output relative to the current output
        -- position - in contrast to @'nest'@ which always aligns to the current
        -- nesting level. This deprives these functions from being \'optimal\'. In
        -- practice however they prove to be very useful. The functions in this
        -- section should be used with care, since they are more expensive than the
        -- other functions. For example, @'align'@ shouldn't be used to pretty print
        -- all top-level declarations of a language, but using @'hang'@ for let
        -- expressions is fine.
        align, hang, indent, encloseSep, list, tupled,
    
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    

    unAnnotate See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Bracketing functions
        --
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    
        -- * Named characters
        --
        -- | Convenience definitions for common characters
        lparen, rparen, langle, rangle, lbrace, rbrace, lbracket, rbracket, squote,
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
        alterAnnotationsS,
    

    unAnnotateS See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- | Enclose documents in common ways.
        squotes, dquotes, parens, angles, brackets, braces,
    
        -- * Named characters
        --
        -- | Convenience definitions for common characters
        lparen, rparen, langle, rangle, lbrace, rbrace, lbracket, rbracket, squote,
        dquote, semi, colon, comma, space, dot, slash, backslash, equals, pipe,
    
        -- ** Annotations
        annotate,
        unAnnotate,
        reAnnotate,
        alterAnnotations,
        unAnnotateS,
        reAnnotateS,
        alterAnnotationsS,
    
        -- * Optimization
        --
    

    unsafeTextWithoutNewlines No usage example found for this symbol :( Collapse [-]
    unsafeViaShow See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- simply adding another @'reAnnotateS'@ to convert the @'Doc'@ annotation to
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
    

    vcat See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
    

    viaShow See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
    -- simply adding another @'reAnnotateS'@ to convert the @'Doc'@ annotation to
    -- something else. On the other hand, if you have @'Red'@ as an annotation in
    -- the @'Doc'@ already and the other backend does not support anything red
    -- (think of plain text or a website where red doesn’t work well with the rest
    -- of the style), you’ll have to worry about what to map »redness« to, which has
    -- no canonical answer. Should it be omitted? What does »red« mean anyway –
    -- maybe keywords and variables are red, and you want to change only the color
    -- of variables?
    module Data.Text.Prettyprint.Doc (
        -- * Documents
        Doc,
    
        -- * Basic functionality
        Pretty(..),
        viaShow, unsafeViaShow,
        emptyDoc, nest, line, line', softline, softline', hardline, group, flatAlt,
    
        -- * Alignment functions
        --
        -- | The functions in this section cannot be described by Wadler's original
    

    vsep See 1 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        -- * Binary functions
        (<>), (<+>),
    
        -- * List functions
    
        -- | The 'sep' and 'cat' functions differ in one detail: when 'group'ed, the
        -- 'sep's replace newlines wich 'space's, while the 'cat's simply remove
        -- them. If you're not sure what you want, start with the 'sep's.
    
        concatWith,
    
        -- ** 'sep' family
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
    

    width See 5 Occurences [+] Collapse [-]
    Found in Data.Text.Prettyprint.Doc from the package prettyprinter
        --
        -- | When 'group'ed, these will replace newlines with spaces.
        hsep, vsep, fillSep, sep,
        -- ** 'cat' family
        --
        -- | When 'group'ed, these will remove newlines.
        hcat, vcat, fillCat, cat,
        -- ** Others
        punctuate,
    
        -- * Reactive/conditional layouts
        --
        -- | Lay documents out differently based on current position and the page
        -- layout.
        column, nesting, width, pageWidth,
    
        -- * Filler functions
        --
        -- | Fill up available space
        fill, fillBreak,
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
        New.Char c   -> Old.Char c
        New.Text l t -> Old.Text l (T.unpack t)
        New.Line     -> Old.Line
    
        New.FlatAlt x y -> Old.FlatAlt (go x) (go y)
        New.Cat x y     -> Old.Cat (go x) (go y)
        New.Nest i x    -> Old.Nest i (go x)
        New.Union x y   -> Old.Union (go x) (go y)
    
        New.Column f -> Old.Column (go . f)
        New.WithPageWidth f -> Old.Columns (go . f . convert)
          where
            convert :: Maybe Int -> New.PageWidth
            convert Nothing = New.Unbounded
            convert (Just width) = New.AvailablePerLine width 1.0
        New.Nesting f -> Old.Nesting (go . f)
    
        New.Annotated style x -> (convertFg . convertBg . convertBold . convertUnderlining) (go x)
                                   -- Italics are unsupported by ansi-wl-pprint so we skip them
          where
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
        New.Char c   -> Old.Char c
        New.Text l t -> Old.Text l (T.unpack t)
        New.Line     -> Old.Line
    
        New.FlatAlt x y -> Old.FlatAlt (go x) (go y)
        New.Cat x y     -> Old.Cat (go x) (go y)
        New.Nest i x    -> Old.Nest i (go x)
        New.Union x y   -> Old.Union (go x) (go y)
    
        New.Column f -> Old.Column (go . f)
        New.WithPageWidth f -> Old.Columns (go . f . convert)
          where
            convert :: Maybe Int -> New.PageWidth
            convert Nothing = New.Unbounded
            convert (Just width) = New.AvailablePerLine width 1.0
        New.Nesting f -> Old.Nesting (go . f)
    
        New.Annotated style x -> (convertFg . convertBg . convertBold . convertUnderlining) (go x)
                                   -- Italics are unsupported by ansi-wl-pprint so we skip them
          where
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
        Old.Empty    -> New.Empty
        Old.Char c   -> New.Char c
        Old.Text l t -> New.Text l (T.pack t)
        Old.Line     -> New.Line
    
        Old.FlatAlt x y -> New.FlatAlt (go x) (go y)
        Old.Cat x y     -> New.Cat (go x) (go y)
        Old.Nest i x    -> New.Nest i (go x)
        Old.Union x y   -> New.Union (go x) (go y)
    
        Old.Column f -> New.Column (go . f)
        Old.Columns f -> New.WithPageWidth (go . f . convert)
          where
            convert :: New.PageWidth -> Maybe Int
            convert (New.AvailablePerLine width _ribbon) = Just width
            convert New.Unbounded                        = Nothing
        Old.Nesting f -> New.Nesting (go . f)
    
        Old.Color layer intensity color x ->
            let convertLayerIntensity :: Ansi.ConsoleLayer -> Ansi.ColorIntensity -> NewTerm.Color -> NewTerm.AnsiStyle
    

    Found in Data.Text.Prettyprint.Convert.AnsiWlPprint from the package prettyprinter-convert-ansi-wl-pprint
        Old.Empty    -> New.Empty
        Old.Char c   -> New.Char c
        Old.Text l t -> New.Text l (T.pack t)
        Old.Line     -> New.Line
    
        Old.FlatAlt x y -> New.FlatAlt (go x) (go y)
        Old.Cat x y     -> New.Cat (go x) (go y)
        Old.Nest i x    -> New.Nest i (go x)
        Old.Union x y   -> New.Union (go x) (go y)
    
        Old.Column f -> New.Column (go . f)
        Old.Columns f -> New.WithPageWidth (go . f . convert)
          where
            convert :: New.PageWidth -> Maybe Int
            convert (New.AvailablePerLine width _ribbon) = Just width
            convert New.Unbounded                        = Nothing
        Old.Nesting f -> New.Nesting (go . f)
    
        Old.Color layer intensity color x ->
            let convertLayerIntensity :: Ansi.ConsoleLayer -> Ansi.ColorIntensity -> NewTerm.Color -> NewTerm.AnsiStyle
    

    AnnotationRemoval No usage example found for this symbol :( Collapse [-]
    Doc No usage example found for this symbol :( Collapse [-]
    FittingPredicate No usage example found for this symbol :( Collapse [-]
    FusionDepth No usage example found for this symbol :( Collapse [-]
    LayoutOptions No usage example found for this symbol :( Collapse [-]
    LayoutPipeline No usage example found for this symbol :( Collapse [-]
    PageWidth No usage example found for this symbol :( Collapse [-]
    Pretty No usage example found for this symbol :( Collapse [-]
    SimpleDocStream No usage example found for this symbol :( Collapse [-]
    WhitespaceStrippingState No usage example found for this symbol :( Collapse [-]