Module Sexp_diff_kernel.Diff

type t =
| Same of Core_kernel.Sexp.t
| Add of Core_kernel.Sexp.t
| Delete of Core_kernel.Sexp.t
| Replace of Core_kernel.Sexp.t * Core_kernel.Sexp.t
| Enclose of t list

This type is intended to be used by OCaml code to produce a visual representation of the diff. If you want to display this diff, take a look at Sexp_diff_display.

include Ppx_sexp_conv_lib.Sexpable.S with type t := t
type t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
val hash : t -> Base.Hash.hash_value
val compare : t -> t -> int
val invert : t -> t
val apply : t -> Core_kernel.Sexp.t -> Core_kernel.Sexp.t Core_kernel.Or_error.t
val apply_exn : t -> Core_kernel.Sexp.t -> Core_kernel.Sexp.t
val print_for_test : t -> unit