Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t =
| Bool of bool
| Int31 of int
int for 32 bit arch
*)| Int63 of int64
int for 64 bit arch
*)| Int32 of int32
| Int64 of int64
| Nativeint32 of int32
natint for 32 bit arch
*)| Nativeint64 of int64
natint for 64 bit arch
*)| Float of float
| Char of char
| String of string
| List of t list
| Array of t list
| Variant of string * t list
Variants. Note that Record style arguments are expressed as Varaint (Record ..)
*)| Poly_variant of string * t list
Polymorphic variants
*)| Record of (string * t) list
| Object of (string * t) list
Object
*)| Tuple of t list
| Unit
| Escaped of string
Something outside of OCaml values
*)type ocaml = t
val format : ?no_poly:bool -> ?raw_string:bool -> Format.formatter -> t -> unit
val format_with :
?no_poly:bool ->
?raw_string:bool ->
('a -> t) ->
Format.formatter ->
'a ->
unit
Same as format
but prints a value of 'a
using the convert from 'a
to t
module Parser : sig ... end
val load : string -> (t list, Parser.error) Pervasives.result
val load_with :
(t -> ('a, 'b) Pervasives.result) ->
string ->
('a list, 'b load_error) Pervasives.result
val save_with :
('a -> t) ->
perm:int ->
?no_poly:bool ->
string ->
'a list ->
unit
val save : perm:int -> ?no_poly:bool -> string -> t list -> unit