Module Sexp_pretty.Sexp_with_layout

val pp_formatter : Format.formatter writer

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

val pp_buffer : Base.Buffer.t writer
val pp_out_channel : out_channel writer

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