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
Documentation
putRawBS :: ByteString -> PutSource
putCanonical :: Sexpr String -> PutSource
putCanonicalHelper :: (a -> Put) -> Sexpr a -> PutSource
basicString :: Sexpr String -> StringSource