package merlin-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ocaml_typing.DatareprSource

Sourceval constructors_of_type : current_unit:Ocaml_parsing.Unit_info.t option -> Path.t -> Types.type_declaration -> (Ident.t * Types.constructor_description) list
Sourceexception Constr_not_found
Sourceval 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
OCaml

Innovation. Community. Security.