Catala_runtime.Valuemodule type External = sig ... endtype _ ty = | Unit : unit ty| Bool : bool ty| Integer : integer ty| Money : money ty| Decimal : decimal ty| Date : date ty| Duration : duration ty| Position : code_location ty| Array : ('a -> t) -> 'a array ty| Tuple : ('a -> t list) -> 'a ty| Struct : {name : string;fields : 'a -> (string * t) list;} -> 'a ty| Enum : {name : string;constr : 'a -> int * string * t option;} -> 'a ty| External : (module External with type t = 'a) -> 'a ty| Function : 'a ty'a ty provides runtime information about the structure of values of OCaml type 'a
Runtime.Value.t is an embedded runtime value that comes with type information, allowing for introspection
val equal : code_location -> t -> t -> boolval compare : code_location -> t -> t -> intval from_json : 'a ty -> code_location -> string -> 'a