-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsexpr.mli
29 lines (20 loc) · 990 Bytes
/
sexpr.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(* Kaspar Rohrer, Wed Apr 14 13:39:33 CEST 2010 *)
(** Dumping arbitrary values as S-expression
Context objects are used to configure the dumping process. A
sensible [default_context] is already provided. *)
type context
(** The context is used to configure the dumping process *)
val default_context : context
(** Context with sensible default values, used as the default
argument for the [dump] function family. *)
val make_context : ?nesting:int -> unit -> context
(** Create a custom context. [nesting] is how deep the printer
recurses before printing *)
val dump : ?context:context -> 'a -> unit
(** Dump to [stdout] *)
val dump_to_file : ?context:context -> string -> 'a -> unit
(** Dump directly to a file. {b The file will be overwritten if it
already exists.} *)
val dump_with_formatter : ?context:context -> Format.formatter -> 'a -> unit
(** Dump using the [Format] module for pretty printing. *)
val test_data : unit -> Obj.t