Extensions to Sexplib.Sexp
.
The ocaml pretty printer (used by sexplib) is a speed daemon but is, sadly enough, produces wrong output (e.g it overflows in places where this could have avoided). This uses a printer from wadler's a prettier printer to output strings suited to human consumption.
Takes a string and returns the same string but commented according to sexp's syntax
Returns a smaller sexp by replacing sections with "...". Will try to show parts of the sexp "near" sub_sexp.
Limiting size to length a string length is less efficient than a certain depth. The meaning of a given depth is arbitrary except that more depth gives you a bigger sexp. Try 100 or so.