Copyright | © 2019 Vincent Archambault |
---|---|
License | 0BSD |
Maintainer | Vincent Archambault <archambault.v@gmail.com> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Printing SExpr
as Lazy
. To print as strict text
(Data.Text) see Data.Sexpresso.Print
Synopsis
- data SExprPrinter b a = SExprParser {}
- mkPrinter :: (a -> Text) -> SExprPrinter b a
- flatPrint :: SExprPrinter b a -> SExpr b a -> Text
- flatPrintBuilder :: SExprPrinter b a -> SExpr b a -> Builder
Documentation
data SExprPrinter b a Source #
The SExprPrinter
defines how to print an SExpr
.
mkPrinter :: (a -> Text) -> SExprPrinter b a Source #
An SExprPrinter
with the opening tag defined as '(' and the
closing tag defined as ')'
flatPrintBuilder :: SExprPrinter b a -> SExpr b a -> Builder Source #