sexpresso-1.2.1.0: A flexible library for parsing and printing S-expression
Copyright© 2019 Vincent Archambault
License0BSD
MaintainerVincent Archambault <archambault.v@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.SExpresso.Print

Description

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

Synopsis

Documentation

data SExprPrinter b a Source #

The SExprPrinter defines how to print an SExpr.

Constructors

SExprPrinter 

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