module ODN:sig
..end
This module helps to translate OCaml data into a string following
OCaml syntax.
typemodule_name =
string
typefield_name =
string
typevariant_name =
string
typevar_name =
string
type
t =
| |
REC of |
(* | List | *) |
| |
LST of |
(* | String | *) |
| |
STR of |
(* | Variant type constructor | *) |
| |
VRT of |
(* | Boolean | *) |
| |
BOO of |
(* | Integer | *) |
| |
INT of |
(* | Float | *) |
| |
FLT of |
(* | Tuple | *) |
| |
TPL of |
(* | Unit () | *) |
| |
UNT |
(* | Function application | *) |
| |
APP of |
(* | Variable | *) |
| |
VAR of |
(* | Polymorphic variant | *) |
| |
PVR of |
val of_unit : unit -> t
val of_bool : bool -> t
val of_string : string -> t
val of_int : int -> t
val of_float : float -> t
val of_option : ('a -> t) -> 'a option -> t
val of_list : ('a -> t) -> 'a list -> t
val of_tuple2 : ('a -> t) * ('b -> t) -> 'a * 'b -> t
val of_tuple3 : ('a -> t) * ('b -> t) * ('c -> t) -> 'a * 'b * 'c -> t
val of_tuple4 : ('a -> t) * ('b -> t) * ('c -> t) * ('d -> t) ->
'a * 'b * 'c * 'd -> t
val of_tuple5 : ('a -> t) * ('b -> t) * ('c -> t) * ('d -> t) * ('e -> t) ->
'a * 'b * 'c * 'd * 'e -> t
val pp_odn : ?opened_modules:string list -> Format.formatter -> t -> unit
val string_of_odn : ?opened_modules:string list -> t -> string