package camlon

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Bool of bool
  2. | Int31 of int
    (*

    int for 32 bit arch

    *)
  3. | Int63 of int64
    (*

    int for 64 bit arch

    *)
  4. | Int32 of int32
  5. | Int64 of int64
  6. | Nativeint32 of int32
    (*

    natint for 32 bit arch

    *)
  7. | Nativeint64 of int64
    (*

    natint for 64 bit arch

    *)
  8. | Float of float
  9. | Char of char
  10. | String of string
  11. | List of t list
  12. | Array of t list
  13. | Variant of string * t list
    (*

    Variants. Note that Record style arguments are expressed as Varaint (Record ..)

    *)
  14. | Poly_variant of string * t list
    (*

    Polymorphic variants

    *)
  15. | Record of (string * t) list
  16. | Object of (string * t) list
    (*

    Object

    *)
  17. | Tuple of t list
  18. | Unit
  19. | 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
type 'a load_error = [
  1. | `Conv of 'a
  2. | Parser.error
]
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
OCaml

Innovation. Community. Security.