Module Base__.Pretty_printer
module type S = sig ... end
Modules that provide a pretty printer will match
S
.
module Register : functor (M : sig ... end) -> S with type t := M.t
Register
builds app
function from ato_string
function, and adds themodule_name ^ ".pp"
to the list of pretty printers. The idea is to statically guarantee that one has the desiredpp
function at the same point where thename
is added.
module Register_pp : functor (M : sig ... end) -> S with type t := M.t
Register_pp
is likeRegister
, but allows a custompp
function rather than usingto_string
.