sexpr-0.2.1: S-expression printer and parser

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

quote :: Show a => a -> DocSource