sexpresso-1.0.0.2: A flexible library for parsing and printing S-expression

Copyright© 2019 Vincent Archambault
License0BSD
MaintainerVincent Archambault <archambault.v@gmail.com>
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Data.SExpresso.Print.Lazy

Description

Printing SExpr as Lazy. To print as strict text (Data.Text) see Data.Sexpresso.Print

Synopsis

Documentation

data SExprPrinter b a Source #

The SExprPrinter defines how to print an SExpr.

Constructors

SExprParser 

Fields

mkPrinter :: (a -> Text) -> SExprPrinter b a Source #

An SExprPrinter with the opening tag defined as '(' and the closing tag defined as ')'

flatPrint :: SExprPrinter b a -> SExpr b a -> Text Source #

Prints an SExpr on a single line

flatPrintBuilder :: SExprPrinter b a -> SExpr b a -> Builder Source #

Prints an SExpr on a single line. Returns a Builder instead of a lazy text Text