package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 4.12.1

Install

Dune Dependency

Authors

Maintainers

Sources

4.12.1.tar.gz
sha256=f5a48a90557cb47ace7b1590fcab1362a1af38629a218350f69c225c57e96a41

doc/ocamlcommon/Datarepr/index.html

Module Datarepr

val extension_descr : current_unit:string -> Path.t -> Types.extension_constructor -> Types.constructor_description
val labels_of_type : Path.t -> Types.type_declaration -> (Ident.t * Types.label_description) list
val constructors_of_type : current_unit:string -> Path.t -> Types.type_declaration -> (Ident.t * Types.constructor_description) list
exception Constr_not_found
val constructor_existentials : Types.constructor_arguments -> Types.type_expr option -> Types.type_expr list * Types.type_expr list

Takes cd_args and cd_res from a constructor_declaration and returns:

  • the types of the constructor's arguments
  • the existential variables introduced by the constructor
val set_row_name : Types.type_declaration -> Path.t -> unit
OCaml

Innovation. Community. Security.