Module Sexp_pretty.Pretty_print.Sexp_with_layout

type sexp
type 'a writer = Config.t ‑> 'a ‑> sexp ‑> Import.unit
val pp_formatter : Sexp_pretty.Import.Format.formatter writer

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

val pp_buffer : Import.Buffer.t writer
val pp_out_channel : Import.Out_channel.t writer
val pp_blit : (Import.stringImport.unitImport.Blit.sub 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