package codept-lib

  1. Overview
  2. Docs

Schema for exported data

type format =
  1. | Json
  2. | Sexp
type (_, _) eq =
  1. | Eq : ('a, 'a) eq
type void = (int, float) eq
module L : sig ... end

Reexport the standard list module

module Tuple : sig ... end
module type label = sig ... end
type 'a label = (module label with type t = 'a)
module Label (X : sig ... end) : sig ... end
val show : 'a label -> string
type required = private
  1. | Required
type optional = private
  1. | Optional
type (_, _, _) modal =
  1. | Opt : (optional, 'a, 'a option) modal
  2. | Req : (required, 'a, 'a) modal
module Record : sig ... end
type ('a, 'b) bijection = {
  1. fwd : 'a -> 'b;
  2. rev : 'b -> 'a;
}
type 'a r =
  1. | Indexed
type ('hole, 'free) s =
  1. | Float : (float, 'free) s
  2. | Int : (int, 'free) s
  3. | Bool : (bool, 'free) s
  4. | String : (string, 'free) s
  5. | Void : (void, 'free) s
  6. | Array : ('hole, 'free) s -> ('hole list, 'free) s
  7. | :: : ('a, 'free) s * ('b Tuple.t, 'free) s -> (('a * 'b) Tuple.t, 'free) s
  8. | [] : (void Tuple.t, 'free) s
  9. | Obj : ('a, 'free) record_declaration -> ('a Record.t, 'free) s
  10. | Custom : ('a, 'b, 'free) custom -> ('a, 'free) s
  11. | Sum : ('a, 'free) sum_decl -> ('a sum, 'free) s
  12. | Description : string * ('hole, 'free) s -> ('hole, 'free) s
  13. | Rec : {
    1. id : string list;
    2. defs : ('defs, 'defs r) rec_defs;
    3. proj : ('defs, 'res) index;
    } -> ('res, 'free) s
  14. | Var : ('free, 'result) index -> ('result, 'free r) s
and (_, _) index =
  1. | Zn : ('a * 'b, 'a) index
  2. | Sn : ('list, 'res) index -> (_ * 'list, 'res) index
and (_, _) rec_defs =
  1. | [] : (void, 'free r) rec_defs
  2. | :: : (string * ('a, 'free r) s) * ('l, 'free r) rec_defs -> ('a * 'l, 'free r) rec_defs
and ('a, 'b, 'free) custom = {
  1. fwd : 'a -> 'b;
  2. rev : 'b -> 'a;
  3. sch : ('b, 'free) s;
}
and ('a, 'free) record_declaration =
  1. | [] : (void, 'free) record_declaration
  2. | :: : (('m, 'x, 'fx) modal * 'a label * ('x, 'free) s) * ('c, 'free) record_declaration -> ('a * 'fx * 'c, 'free) record_declaration
and ('a, 'mu) sum_decl =
  1. | [] : (< before : void >, 'mu) sum_decl
  2. | :: : (string * ('a, 'mu) s) * ('b, 'mu) sum_decl -> (< at : 'a ; before : 'b >, 'mu) sum_decl
and (_, _) cons =
  1. | Z : 'a -> (< at : 'a ; before : 'any >, 'a) cons
  2. | E : (< at : void ; before : 'any >, 'a) cons
  3. | S : ('a, 'n) cons -> (< at : 'any ; before : 'a >, 'n) cons
and 'a sum =
  1. | C : ('a, 'elt) cons -> 'a sum
type 'a t = ('a, void) s
type 'a schematic = 'a t
val reopen : 'a t -> ('a, 'b) s
module Version : sig ... end
val pretty_json : 'a t -> Format.formatter -> 'a -> unit
val simple_json : 'a t -> Format.formatter -> 'a -> unit
val sexp : 'a t -> Format.formatter -> 'a -> unit
val ($=) : 'a label -> 'b -> 'a label * 'b
val skip : 'a label -> 'a label * 'b option
val ($=?) : 'a label -> 'b option -> 'a label * 'b option
val obj : 'a Record.t -> 'a Record.t
val custom : ('b, 'f) s -> ('a -> 'b) -> ('b -> 'a) -> ('a, 'f) s
module Untyped : sig ... end
val retype : 'a t -> Untyped.t -> 'a option
val minify : Format.formatter -> ('a, Format.formatter, unit, unit) format4 -> 'a
val default : 'a -> 'a -> 'a option
val option : ('a, 'f) s -> ('a option, 'f) s
val pair : ('a, 'f) s -> ('b, 'f) s -> ('a * 'b, 'f) s
val (<?>) : ('a, 'f) s -> string -> ('a, 'f) s
module Ext : sig ... end
OCaml

Innovation. Community. Security.