Export S-expressions in any of the three ordinary forms:
- Canonical, where a different string implies a different meaning
- Basic, suitable for transport over 7-bit and awkward media
- Advanced, a human-readable pretty-printed encoding.
The ->
functions are probably what you want unless you
know you want something else.
String
The Show
instance for Sexpr is provided here, using
advancedString and the underlying Show instance. Overlapping
instances are used to provide a nice show for
.
Sexpr
String
String printers
basicString :: Sexpr String -> StringSource
ShowS printers
Doc pretty printers
Put binary printers
putCanonical :: Sexpr String -> PutSource