sexpr-0.2.0: S-expression printer and parserSource codeContentsIndex
Codec.Sexpr.Printer
Description

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 -> String functions are probably what you want unless you know you want something else.

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
raw :: String -> String -> StringSource
canonicalString :: Sexpr String -> StringSource
canonical :: Sexpr String -> ShowSSource
putRaw :: String -> PutSource
putRawBS :: ByteString -> PutSource
putChar' :: Char -> PutSource
putCanonical :: Sexpr String -> PutSource
putCanonicalBS :: Sexpr ByteString -> PutSource
putCanonicalHelper :: (a -> Put) -> Sexpr a -> PutSource
basicString :: Sexpr String -> StringSource
basic :: Sexpr String -> DocSource
advancedString :: Sexpr String -> StringSource
format :: String -> DocSource
canToken :: String -> BoolSource
canQuote :: String -> BoolSource
canHex :: String -> BoolSource
hex :: String -> DocSource
hexEncode :: Char -> StringSource
quote :: Show a => a -> DocSource
base64 :: String -> DocSource
advanced :: Sexpr String -> DocSource
Produced by Haddock version 2.4.2