Module Bonsai.Debug

val on_change : here:lexing_position -> 'a Value.t -> f:('a -> unit) -> unit Computation.t

on_change v ~f executes the function f every time that v is recomputed.

val on_change_print_s : here:lexing_position -> 'a Value.t -> ('a -> Core.Sexp.t) -> unit Computation.t

like on_change, but specialized for printing a sexp of the value that you are watching.

val to_dot : ?pre_process:bool -> 'a Computation.t -> string
val bonsai_node_counts : ?pre_process:bool -> 'a Computation.t -> Bonsai.Private.Skeleton.Counts.t
val enable_incremental_annotations : unit -> unit
val disable_incremental_annotations : unit -> unit