yamlet
Safe HaskellNone
LanguageGHC2021

Yamlet.Internal.Encoder

Description

The renderer of the nodes of the encoder.

This module is intended for internal use only, and may change without warning in subsequent releases.

Synopsis

Documentation

renderDocuments :: [Node] -> Text Source #

Render documents. Documents after the first one start with a --- marker. The collections of toYaml are in the block style.

A document with comments, anchors, aliases, flow collections, scalars on several lines or scalar styles that toYaml does not create goes to renderSyntax. Other documents go to a faster renderer, which gives the same output.