package shexp

  1. Overview
  2. Docs

Mini S-expression library

type t = Sexplib0.Sexp.t =
  1. | Atom of string
  2. | List of t list
val to_string : t -> string
val int : int -> t

Combinators

val int32 : int32 -> t
val int64 : int64 -> t
val float : float -> t
val string : string -> t
val char : char -> t
val bool : bool -> t
val exn : exn -> t
val pair : ('a -> t) -> ('b -> t) -> ('a * 'b) -> t
val list : ('a -> t) -> 'a list -> t
val option : ('a -> t) -> 'a option -> t
val record : (string * t) list -> t
val cstr : string -> t list -> t
val cstr_record : string -> (string * t) list -> t
val cstr_list : string -> ('a -> t) -> 'a list -> t
val register_exn_converter : extension_constructor -> (exn -> t) -> unit
OCaml

Innovation. Community. Security.