mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-18 16:46:41 -05:00
43 lines
21 KiB
HTML
43 lines
21 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Typedecl (ocaml.Typedecl)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">ocaml</a> » Typedecl</nav><header class="odoc-preamble"><h1>Module <code><span>Typedecl</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-transl_type_decl"><a href="#val-transl_type_decl" class="anchor"></a><code><span><span class="keyword">val</span> transl_type_decl :
|
||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Asttypes/index.html#type-rec_flag">Asttypes.rec_flag</a> <span class="arrow">-></span></span>
|
||
<span><span><a href="../Parsetree/index.html#type-type_declaration">Parsetree.type_declaration</a> list</span> <span class="arrow">-></span></span>
|
||
<span><a href="../Typedtree/index.html#type-type_declaration">Typedtree.type_declaration</a> list</span> * <a href="../Env/index.html#type-t">Env.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-transl_exception"><a href="#val-transl_exception" class="anchor"></a><code><span><span class="keyword">val</span> transl_exception :
|
||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Parsetree/index.html#type-extension_constructor">Parsetree.extension_constructor</a> <span class="arrow">-></span></span>
|
||
<a href="../Typedtree/index.html#type-extension_constructor">Typedtree.extension_constructor</a> * <a href="../Env/index.html#type-t">Env.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-transl_type_exception"><a href="#val-transl_type_exception" class="anchor"></a><code><span><span class="keyword">val</span> transl_type_exception :
|
||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Parsetree/index.html#type-type_exception">Parsetree.type_exception</a> <span class="arrow">-></span></span>
|
||
<a href="../Typedtree/index.html#type-type_exception">Typedtree.type_exception</a> * <a href="../Env/index.html#type-t">Env.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-transl_type_extension"><a href="#val-transl_type_extension" class="anchor"></a><code><span><span class="keyword">val</span> transl_type_extension :
|
||
<span>bool <span class="arrow">-></span></span>
|
||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Location/index.html#type-t">Location.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Parsetree/index.html#type-type_extension">Parsetree.type_extension</a> <span class="arrow">-></span></span>
|
||
<a href="../Typedtree/index.html#type-type_extension">Typedtree.type_extension</a> * <a href="../Env/index.html#type-t">Env.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-transl_value_decl"><a href="#val-transl_value_decl" class="anchor"></a><code><span><span class="keyword">val</span> transl_value_decl :
|
||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Location/index.html#type-t">Location.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Parsetree/index.html#type-value_description">Parsetree.value_description</a> <span class="arrow">-></span></span>
|
||
<a href="../Typedtree/index.html#type-value_description">Typedtree.value_description</a> * <a href="../Env/index.html#type-t">Env.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-transl_with_constraint"><a href="#val-transl_with_constraint" class="anchor"></a><code><span><span class="keyword">val</span> transl_with_constraint :
|
||
<span><a href="../Ident/index.html#type-t">Ident.t</a> <span class="arrow">-></span></span>
|
||
<span><span class="optlabel">?fixed_row_path</span>:<a href="../Path/index.html#type-t">Path.t</a> <span class="arrow">-></span></span>
|
||
<span><span class="label">sig_env</span>:<a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><span class="label">sig_decl</span>:<a href="../Types/index.html#type-type_declaration">Types.type_declaration</a> <span class="arrow">-></span></span>
|
||
<span><span class="label">outer_env</span>:<a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Parsetree/index.html#type-type_declaration">Parsetree.type_declaration</a> <span class="arrow">-></span></span>
|
||
<a href="../Typedtree/index.html#type-type_declaration">Typedtree.type_declaration</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-abstract_type_decl"><a href="#val-abstract_type_decl" class="anchor"></a><code><span><span class="keyword">val</span> abstract_type_decl : <span><span class="label">injective</span>:bool <span class="arrow">-></span></span> <span>int <span class="arrow">-></span></span> <a href="../Types/index.html#type-type_declaration">Types.type_declaration</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-approx_type_decl"><a href="#val-approx_type_decl" class="anchor"></a><code><span><span class="keyword">val</span> approx_type_decl :
|
||
<span><span><a href="../Parsetree/index.html#type-type_declaration">Parsetree.type_declaration</a> list</span> <span class="arrow">-></span></span>
|
||
<span><span>(<a href="../Ident/index.html#type-t">Ident.t</a> * <a href="../Types/index.html#type-type_declaration">Types.type_declaration</a>)</span> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-check_recmod_typedecl"><a href="#val-check_recmod_typedecl" class="anchor"></a><code><span><span class="keyword">val</span> check_recmod_typedecl :
|
||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Location/index.html#type-t">Location.t</a> <span class="arrow">-></span></span>
|
||
<span><span><a href="../Ident/index.html#type-t">Ident.t</a> list</span> <span class="arrow">-></span></span>
|
||
<span><a href="../Path/index.html#type-t">Path.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Types/index.html#type-type_declaration">Types.type_declaration</a> <span class="arrow">-></span></span>
|
||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-check_coherence"><a href="#val-check_coherence" class="anchor"></a><code><span><span class="keyword">val</span> check_coherence :
|
||
<span><a href="../Env/index.html#type-t">Env.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Location/index.html#type-t">Location.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Path/index.html#type-t">Path.t</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Types/index.html#type-type_declaration">Types.type_declaration</a> <span class="arrow">-></span></span>
|
||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_fixed_type"><a href="#val-is_fixed_type" class="anchor"></a><code><span><span class="keyword">val</span> is_fixed_type : <span><a href="../Parsetree/index.html#type-type_declaration">Parsetree.type_declaration</a> <span class="arrow">-></span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-native_repr_kind"><a href="#type-native_repr_kind" class="anchor"></a><code><span><span class="keyword">type</span> native_repr_kind</span><span> = </span></code><ol><li id="type-native_repr_kind.Unboxed" class="def variant constructor anchored"><a href="#type-native_repr_kind.Unboxed" class="anchor"></a><code><span>| </span><span><span class="constructor">Unboxed</span></span></code></li><li id="type-native_repr_kind.Untagged" class="def variant constructor anchored"><a href="#type-native_repr_kind.Untagged" class="anchor"></a><code><span>| </span><span><span class="constructor">Untagged</span></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-error"><a href="#type-error" class="anchor"></a><code><span><span class="keyword">type</span> error</span><span> = </span></code><ol><li id="type-error.Repeated_parameter" class="def variant constructor anchored"><a href="#type-error.Repeated_parameter" class="anchor"></a><code><span>| </span><span><span class="constructor">Repeated_parameter</span></span></code></li><li id="type-error.Duplicate_constructor" class="def variant constructor anchored"><a href="#type-error.Duplicate_constructor" class="anchor"></a><code><span>| </span><span><span class="constructor">Duplicate_constructor</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Too_many_constructors" class="def variant constructor anchored"><a href="#type-error.Too_many_constructors" class="anchor"></a><code><span>| </span><span><span class="constructor">Too_many_constructors</span></span></code></li><li id="type-error.Duplicate_label" class="def variant constructor anchored"><a href="#type-error.Duplicate_label" class="anchor"></a><code><span>| </span><span><span class="constructor">Duplicate_label</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Recursive_abbrev" class="def variant constructor anchored"><a href="#type-error.Recursive_abbrev" class="anchor"></a><code><span>| </span><span><span class="constructor">Recursive_abbrev</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Cycle_in_def" class="def variant constructor anchored"><a href="#type-error.Cycle_in_def" class="anchor"></a><code><span>| </span><span><span class="constructor">Cycle_in_def</span> <span class="keyword">of</span> string * <a href="../Types/index.html#type-type_expr">Types.type_expr</a></span></code></li><li id="type-error.Definition_mismatch" class="def variant constructor anchored"><a href="#type-error.Definition_mismatch" class="anchor"></a><code><span>| </span><span><span class="constructor">Definition_mismatch</span> <span class="keyword">of</span> <a href="../Types/index.html#type-type_expr">Types.type_expr</a>
|
||
* <a href="../Env/index.html#type-t">Env.t</a>
|
||
* <span><a href="../Includecore/index.html#type-type_mismatch">Includecore.type_mismatch</a> option</span></span></code></li><li id="type-error.Constraint_failed" class="def variant constructor anchored"><a href="#type-error.Constraint_failed" class="anchor"></a><code><span>| </span><span><span class="constructor">Constraint_failed</span> <span class="keyword">of</span> <a href="../Env/index.html#type-t">Env.t</a> * <a href="../Errortrace/index.html#type-unification_error">Errortrace.unification_error</a></span></code></li><li id="type-error.Inconsistent_constraint" class="def variant constructor anchored"><a href="#type-error.Inconsistent_constraint" class="anchor"></a><code><span>| </span><span><span class="constructor">Inconsistent_constraint</span> <span class="keyword">of</span> <a href="../Env/index.html#type-t">Env.t</a> * <a href="../Errortrace/index.html#type-unification_error">Errortrace.unification_error</a></span></code></li><li id="type-error.Type_clash" class="def variant constructor anchored"><a href="#type-error.Type_clash" class="anchor"></a><code><span>| </span><span><span class="constructor">Type_clash</span> <span class="keyword">of</span> <a href="../Env/index.html#type-t">Env.t</a> * <a href="../Errortrace/index.html#type-unification_error">Errortrace.unification_error</a></span></code></li><li id="type-error.Non_regular" class="def variant constructor anchored"><a href="#type-error.Non_regular" class="anchor"></a><code><span>| </span><span><span class="constructor">Non_regular</span> <span class="keyword">of</span> </span><span>{</span></code><ol><li id="type-error.definition" class="def record field anchored"><a href="#type-error.definition" class="anchor"></a><code><span>definition : <a href="../Path/index.html#type-t">Path.t</a>;</span></code></li><li id="type-error.used_as" class="def record field anchored"><a href="#type-error.used_as" class="anchor"></a><code><span>used_as : <a href="../Types/index.html#type-type_expr">Types.type_expr</a>;</span></code></li><li id="type-error.defined_as" class="def record field anchored"><a href="#type-error.defined_as" class="anchor"></a><code><span>defined_as : <a href="../Types/index.html#type-type_expr">Types.type_expr</a>;</span></code></li><li id="type-error.expansions" class="def record field anchored"><a href="#type-error.expansions" class="anchor"></a><code><span>expansions : <span><span>(<a href="../Types/index.html#type-type_expr">Types.type_expr</a> * <a href="../Types/index.html#type-type_expr">Types.type_expr</a>)</span> list</span>;</span></code></li></ol><code><span>}</span></code></li><li id="type-error.Null_arity_external" class="def variant constructor anchored"><a href="#type-error.Null_arity_external" class="anchor"></a><code><span>| </span><span><span class="constructor">Null_arity_external</span></span></code></li><li id="type-error.Missing_native_external" class="def variant constructor anchored"><a href="#type-error.Missing_native_external" class="anchor"></a><code><span>| </span><span><span class="constructor">Missing_native_external</span></span></code></li><li id="type-error.Unbound_type_var" class="def variant constructor anchored"><a href="#type-error.Unbound_type_var" class="anchor"></a><code><span>| </span><span><span class="constructor">Unbound_type_var</span> <span class="keyword">of</span> <a href="../Types/index.html#type-type_expr">Types.type_expr</a> * <a href="../Types/index.html#type-type_declaration">Types.type_declaration</a></span></code></li><li id="type-error.Cannot_extend_private_type" class="def variant constructor anchored"><a href="#type-error.Cannot_extend_private_type" class="anchor"></a><code><span>| </span><span><span class="constructor">Cannot_extend_private_type</span> <span class="keyword">of</span> <a href="../Path/index.html#type-t">Path.t</a></span></code></li><li id="type-error.Not_extensible_type" class="def variant constructor anchored"><a href="#type-error.Not_extensible_type" class="anchor"></a><code><span>| </span><span><span class="constructor">Not_extensible_type</span> <span class="keyword">of</span> <a href="../Path/index.html#type-t">Path.t</a></span></code></li><li id="type-error.Extension_mismatch" class="def variant constructor anchored"><a href="#type-error.Extension_mismatch" class="anchor"></a><code><span>| </span><span><span class="constructor">Extension_mismatch</span> <span class="keyword">of</span> <a href="../Path/index.html#type-t">Path.t</a> * <a href="../Env/index.html#type-t">Env.t</a> * <a href="../Includecore/index.html#type-type_mismatch">Includecore.type_mismatch</a></span></code></li><li id="type-error.Rebind_wrong_type" class="def variant constructor anchored"><a href="#type-error.Rebind_wrong_type" class="anchor"></a><code><span>| </span><span><span class="constructor">Rebind_wrong_type</span> <span class="keyword">of</span> <a href="../Longident/index.html#type-t">Longident.t</a> * <a href="../Env/index.html#type-t">Env.t</a> * <a href="../Errortrace/index.html#type-unification_error">Errortrace.unification_error</a></span></code></li><li id="type-error.Rebind_mismatch" class="def variant constructor anchored"><a href="#type-error.Rebind_mismatch" class="anchor"></a><code><span>| </span><span><span class="constructor">Rebind_mismatch</span> <span class="keyword">of</span> <a href="../Longident/index.html#type-t">Longident.t</a> * <a href="../Path/index.html#type-t">Path.t</a> * <a href="../Path/index.html#type-t">Path.t</a></span></code></li><li id="type-error.Rebind_private" class="def variant constructor anchored"><a href="#type-error.Rebind_private" class="anchor"></a><code><span>| </span><span><span class="constructor">Rebind_private</span> <span class="keyword">of</span> <a href="../Longident/index.html#type-t">Longident.t</a></span></code></li><li id="type-error.Variance" class="def variant constructor anchored"><a href="#type-error.Variance" class="anchor"></a><code><span>| </span><span><span class="constructor">Variance</span> <span class="keyword">of</span> <a href="../Typedecl_variance/index.html#type-error">Typedecl_variance.error</a></span></code></li><li id="type-error.Unavailable_type_constructor" class="def variant constructor anchored"><a href="#type-error.Unavailable_type_constructor" class="anchor"></a><code><span>| </span><span><span class="constructor">Unavailable_type_constructor</span> <span class="keyword">of</span> <a href="../Path/index.html#type-t">Path.t</a></span></code></li><li id="type-error.Unbound_type_var_ext" class="def variant constructor anchored"><a href="#type-error.Unbound_type_var_ext" class="anchor"></a><code><span>| </span><span><span class="constructor">Unbound_type_var_ext</span> <span class="keyword">of</span> <a href="../Types/index.html#type-type_expr">Types.type_expr</a> * <a href="../Types/index.html#type-extension_constructor">Types.extension_constructor</a></span></code></li><li id="type-error.Val_in_structure" class="def variant constructor anchored"><a href="#type-error.Val_in_structure" class="anchor"></a><code><span>| </span><span><span class="constructor">Val_in_structure</span></span></code></li><li id="type-error.Multiple_native_repr_attributes" class="def variant constructor anchored"><a href="#type-error.Multiple_native_repr_attributes" class="anchor"></a><code><span>| </span><span><span class="constructor">Multiple_native_repr_attributes</span></span></code></li><li id="type-error.Cannot_unbox_or_untag_type" class="def variant constructor anchored"><a href="#type-error.Cannot_unbox_or_untag_type" class="anchor"></a><code><span>| </span><span><span class="constructor">Cannot_unbox_or_untag_type</span> <span class="keyword">of</span> <a href="#type-native_repr_kind">native_repr_kind</a></span></code></li><li id="type-error.Deep_unbox_or_untag_attribute" class="def variant constructor anchored"><a href="#type-error.Deep_unbox_or_untag_attribute" class="anchor"></a><code><span>| </span><span><span class="constructor">Deep_unbox_or_untag_attribute</span> <span class="keyword">of</span> <a href="#type-native_repr_kind">native_repr_kind</a></span></code></li><li id="type-error.Immediacy" class="def variant constructor anchored"><a href="#type-error.Immediacy" class="anchor"></a><code><span>| </span><span><span class="constructor">Immediacy</span> <span class="keyword">of</span> <a href="../Typedecl_immediacy/index.html#type-error">Typedecl_immediacy.error</a></span></code></li><li id="type-error.Separability" class="def variant constructor anchored"><a href="#type-error.Separability" class="anchor"></a><code><span>| </span><span><span class="constructor">Separability</span> <span class="keyword">of</span> <a href="../Typedecl_separability/index.html#type-error">Typedecl_separability.error</a></span></code></li><li id="type-error.Bad_unboxed_attribute" class="def variant constructor anchored"><a href="#type-error.Bad_unboxed_attribute" class="anchor"></a><code><span>| </span><span><span class="constructor">Bad_unboxed_attribute</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.Boxed_and_unboxed" class="def variant constructor anchored"><a href="#type-error.Boxed_and_unboxed" class="anchor"></a><code><span>| </span><span><span class="constructor">Boxed_and_unboxed</span></span></code></li><li id="type-error.Nonrec_gadt" class="def variant constructor anchored"><a href="#type-error.Nonrec_gadt" class="anchor"></a><code><span>| </span><span><span class="constructor">Nonrec_gadt</span></span></code></li><li id="type-error.Invalid_private_row_declaration" class="def variant constructor anchored"><a href="#type-error.Invalid_private_row_declaration" class="anchor"></a><code><span>| </span><span><span class="constructor">Invalid_private_row_declaration</span> <span class="keyword">of</span> <a href="../Types/index.html#type-type_expr">Types.type_expr</a></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec exception anchored" id="exception-Error"><a href="#exception-Error" class="anchor"></a><code><span><span class="keyword">exception</span> </span><span><span class="exception">Error</span> <span class="keyword">of</span> <a href="../Location/index.html#type-t">Location.t</a> * <a href="#type-error">error</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">-></span></span> <span><a href="#type-error">error</a> <span class="arrow">-></span></span> unit</span></code></div></div></div></body></html>
|