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

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

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