jon.recoil.org

Module Ocaml_typing.Datarepr

exception Constr_not_found
val find_constr_by_tag : constant:bool -> int -> ((Ocaml_typing.Types.constructor_description * 'a) * 'b) list -> Ocaml_typing.Types.constructor_description

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