package sexp_pretty

  1. Overview
  2. Docs
type sexp
type 'a writer = Config.t -> 'a -> sexp -> Import.unit

pp_formatter conf fmt sepx will mutate the fmt with functions such as set_formatter_tag_functions

val pp_out_channel : Import.Out_channel.t writer
val pretty_string : Config.t -> sexp -> Import.string

pretty_string needs to allocate. If you care about performance, using one of the pp_* functions above is advised.

val sexp_to_string : sexp -> Import.string