package ocaml-compiler
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Official release of OCaml 5.5.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-5.5.0.tar.gz
sha256=c018052c8264a3791a8f54f84179e6bcc78ed82eb889bacc2773df445259aed3
doc/compiler-libs.common/Typedecl/index.html
Module Typedecl
val transl_type_decl :
Env.t ->
Asttypes.rec_flag ->
Parsetree.type_declaration list ->
Typedtree.type_declaration list * Env.t * Shape.t listval transl_exception :
Env.t ->
Parsetree.extension_constructor ->
Typedtree.extension_constructor * Env.t * Shape.tval transl_type_exception :
Env.t ->
Parsetree.type_exception ->
Typedtree.type_exception * Env.t * Shape.tval transl_type_extension :
bool ->
Env.t ->
Location.t ->
Parsetree.type_extension ->
Typedtree.type_extension * Env.t * Shape.t listval transl_value_decl :
Env.t ->
Location.t ->
Parsetree.value_description ->
Typedtree.value_description * Env.tval transl_with_constraint :
Ident.t ->
?fixed_row_path:Path.t ->
sig_env:Env.t ->
sig_decl:Types.type_declaration ->
outer_env:Env.t ->
Parsetree.type_declaration ->
Typedtree.type_declarationval transl_package_constraint :
loc:Location.t ->
Env.t ->
Types.type_expr ->
Types.type_declarationval abstract_type_decl :
injective:bool ->
explanation:Types.type_origin ->
int ->
Types.type_declarationval approx_type_decl :
explanation:Types.type_origin ->
Parsetree.type_declaration list ->
(Ident.t * Types.type_declaration) listApproximate a list of type declarations with abstract types of the given origin.
val check_recmod_typedecl :
abs_env:Env.t ->
Env.t ->
Location.t ->
Ident.t list ->
Path.t ->
Types.type_declaration ->
unitcheck_recmod_typedecl ~abs_env env loc recmod_ids path decl
recmod_idsis the list of recursively-defined module idents.path, declis the type declaration to be checked.abs_envis an abstract environment without physical cycles. It is used as a printing environment.envis the main environment, which may contain cycles introduced by the recursive module definitions.
val check_coherence :
Env.t ->
Location.t ->
Path.t ->
Types.type_declaration ->
unitval is_fixed_type : Parsetree.type_declaration -> booltype reaching_type_path = reaching_type_step listand reaching_type_step = | Expands_to of Types.type_expr * Types.type_expr| Contains of Types.type_expr * Types.type_expr
type error = | Repeated_parameter| Duplicate_constructor of string| Too_many_constructors| Duplicate_label of string| Recursive_abbrev of string * Env.t * reaching_type_path| Cycle_in_def of string * Env.t * reaching_type_path| Definition_mismatch of Types.type_expr * Env.t * Includecore.type_mismatch option| Constraint_failed of Env.t * Errortrace.unification_error| Inconsistent_constraint of Env.t * Errortrace.unification_error| Type_clash of Env.t * Errortrace.unification_error| Non_regular of {definition : Path.t;used_as : Types.type_expr;defined_as : Types.type_expr;reaching_path : reaching_type_path;
}| Null_arity_external| Missing_native_external| Unbound_type_var of Types.type_expr * Types.type_declaration| Cannot_extend_private_type of Path.t| Not_extensible_type of Path.t| Extension_mismatch of Path.t * Env.t * Includecore.type_mismatch| Rebind_wrong_type of Longident.t * Env.t * Errortrace.unification_error| Rebind_mismatch of Longident.t * Path.t * Path.t| Rebind_private of Longident.t| Variance of Typedecl_variance.error| Unbound_type_var_ext of Types.type_expr * Types.extension_constructor| Val_in_structure| Multiple_native_repr_attributes| Cannot_unbox_or_untag_type of native_repr_kind| Deep_unbox_or_untag_attribute of native_repr_kind| Type_cannot_be_external of Types.type_expr| Immediacy of Typedecl_immediacy.error| Separability of Typedecl_separability.error| Bad_unboxed_attribute of string| Boxed_and_unboxed| Nonrec_gadt| Invalid_private_row_declaration of Types.type_expr| Atomic_field_must_be_mutable of string| External_with_non_syntactic_arity
exception Error of Location.t * errorval report_error : loc:Location.t -> error -> Location.report sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>