package sexp_pretty

  1. Overview
  2. Docs

Module Sexp_prettySource

Sourcemodule Config : sig ... end
Sourcemodule type S = sig ... end
include S with type sexp := Base.Sexp.t
Sourcetype 'a writer = Config.t -> 'a -> Base.Sexp.t -> Base.unit
Sourceval pp_formatter : Format.formatter writer

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

Sourceval pp_buffer : Base.Buffer.t writer
Sourceval pp_out_channel : out_channel writer
Sourceval pretty_string : Config.t -> Base.Sexp.t -> Base.string

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

Sourceval sexp_to_string : Base.Sexp.t -> Base.string
Sourcemodule Normalize : sig ... end