435 lines
6.1 KiB
HTML
435 lines
6.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Typemod</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Typemod</H1>
|
|
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Typemod - Type-checking of the module language and typed ast plugin hooks
|
|
<A NAME="lbAC"> </A>
|
|
<H2>Module</H2>
|
|
|
|
Module Typemod
|
|
<A NAME="lbAD"> </A>
|
|
<H2>Documentation</H2>
|
|
|
|
<P>
|
|
Module
|
|
<B>Typemod</B>
|
|
|
|
<BR> :
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
Type-checking of the module language and typed ast plugin hooks
|
|
<P>
|
|
Warning: this module is unstable and part of
|
|
<B>Compiler_libs</B>
|
|
|
|
.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>module Signature_names : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val type_module </I>
|
|
|
|
:
|
|
<B>Env.t -> Parsetree.module_expr -> Typedtree.module_expr</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val type_structure </I>
|
|
|
|
:
|
|
<B>Env.t -></B>
|
|
|
|
<B>Parsetree.structure -></B>
|
|
|
|
<B>Location.t -></B>
|
|
|
|
<B>Typedtree.structure * Types.signature * Signature_names.t * Env.t</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val type_toplevel_phrase </I>
|
|
|
|
:
|
|
<B>Env.t -></B>
|
|
|
|
<B>Parsetree.structure -></B>
|
|
|
|
<B>Typedtree.structure * Types.signature * Signature_names.t * Env.t</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val type_implementation </I>
|
|
|
|
:
|
|
<B>string -></B>
|
|
|
|
<B>string -></B>
|
|
|
|
<B>string -></B>
|
|
|
|
<B>Env.t -></B>
|
|
|
|
<B>Parsetree.structure -> Typedtree.structure * Typedtree.module_coercion</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val type_interface </I>
|
|
|
|
:
|
|
<B>string -> Env.t -> Parsetree.signature -> Typedtree.signature</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val transl_signature </I>
|
|
|
|
:
|
|
<B>Env.t -> Parsetree.signature -> Typedtree.signature</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val check_nongen_schemes </I>
|
|
|
|
:
|
|
<B>Env.t -> Types.signature -> unit</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val modtype_of_package </I>
|
|
|
|
:
|
|
<B>Env.t -></B>
|
|
|
|
<B>Location.t -></B>
|
|
|
|
<B>Path.t -> Longident.t list -> Types.type_expr list -> Types.module_type</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val path_of_module </I>
|
|
|
|
:
|
|
<B>Typedtree.module_expr -> Path.t option</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val save_signature </I>
|
|
|
|
:
|
|
<B>string -></B>
|
|
|
|
<B>Typedtree.signature -></B>
|
|
|
|
<B>string -> string -> Env.t -> Cmi_format.cmi_infos -> unit</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val package_units </I>
|
|
|
|
:
|
|
<B>Env.t -> string list -> string -> string -> Typedtree.module_coercion</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val initial_env </I>
|
|
|
|
:
|
|
<B>loc:Location.t -></B>
|
|
|
|
<B>safe_string:bool -></B>
|
|
|
|
<B>initially_opened_module:string option -></B>
|
|
|
|
<B>open_implicit_modules:string list -> Env.t</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>module Sig_component_kind : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type hiding_error </I>
|
|
|
|
=
|
|
<BR> | Illegal_shadowing
|
|
<B>of {</B>
|
|
|
|
<BR> shadowed_item_id :
|
|
<B>Ident.t</B>
|
|
|
|
;
|
|
<BR> shadowed_item_kind :
|
|
<B>Sig_component_kind.t</B>
|
|
|
|
;
|
|
<BR> shadowed_item_loc :
|
|
<B>Location.t</B>
|
|
|
|
;
|
|
<BR> shadower_id :
|
|
<B>Ident.t</B>
|
|
|
|
;
|
|
<BR> user_id :
|
|
<B>Ident.t</B>
|
|
|
|
;
|
|
<BR> user_kind :
|
|
<B>Sig_component_kind.t</B>
|
|
|
|
;
|
|
<BR> user_loc :
|
|
<B>Location.t</B>
|
|
|
|
;
|
|
<BR> }
|
|
<BR> | Appears_in_signature
|
|
<B>of {</B>
|
|
|
|
<BR> opened_item_id :
|
|
<B>Ident.t</B>
|
|
|
|
;
|
|
<BR> opened_item_kind :
|
|
<B>Sig_component_kind.t</B>
|
|
|
|
;
|
|
<BR> user_id :
|
|
<B>Ident.t</B>
|
|
|
|
;
|
|
<BR> user_kind :
|
|
<B>Sig_component_kind.t</B>
|
|
|
|
;
|
|
<BR> user_loc :
|
|
<B>Location.t</B>
|
|
|
|
;
|
|
<BR> }
|
|
<BR>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type error </I>
|
|
|
|
=
|
|
<BR> | Cannot_apply
|
|
<B>of </B>
|
|
|
|
<B>Types.module_type</B>
|
|
|
|
<BR> | Not_included
|
|
<B>of </B>
|
|
|
|
<B>Includemod.error list</B>
|
|
|
|
<BR> | Cannot_eliminate_dependency
|
|
<B>of </B>
|
|
|
|
<B>Types.module_type</B>
|
|
|
|
<BR> | Signature_expected
|
|
<BR> | Structure_expected
|
|
<B>of </B>
|
|
|
|
<B>Types.module_type</B>
|
|
|
|
<BR> | With_no_component
|
|
<B>of </B>
|
|
|
|
<B>Longident.t</B>
|
|
|
|
<BR> | With_mismatch
|
|
<B>of </B>
|
|
|
|
<B>Longident.t * Includemod.error list</B>
|
|
|
|
<BR> | With_makes_applicative_functor_ill_typed
|
|
<B>of </B>
|
|
|
|
<B>Longident.t * Path.t * Includemod.error list</B>
|
|
|
|
<BR> | With_changes_module_alias
|
|
<B>of </B>
|
|
|
|
<B>Longident.t * Ident.t * Path.t</B>
|
|
|
|
<BR> | With_cannot_remove_constrained_type
|
|
<BR> | Repeated_name
|
|
<B>of </B>
|
|
|
|
<B>Sig_component_kind.t * string</B>
|
|
|
|
<BR> | Non_generalizable
|
|
<B>of </B>
|
|
|
|
<B>Types.type_expr</B>
|
|
|
|
<BR> | Non_generalizable_class
|
|
<B>of </B>
|
|
|
|
<B>Ident.t * Types.class_declaration</B>
|
|
|
|
<BR> | Non_generalizable_module
|
|
<B>of </B>
|
|
|
|
<B>Types.module_type</B>
|
|
|
|
<BR> | Implementation_is_required
|
|
<B>of </B>
|
|
|
|
<B>string</B>
|
|
|
|
<BR> | Interface_not_compiled
|
|
<B>of </B>
|
|
|
|
<B>string</B>
|
|
|
|
<BR> | Not_allowed_in_functor_body
|
|
<BR> | Not_a_packed_module
|
|
<B>of </B>
|
|
|
|
<B>Types.type_expr</B>
|
|
|
|
<BR> | Incomplete_packed_module
|
|
<B>of </B>
|
|
|
|
<B>Types.type_expr</B>
|
|
|
|
<BR> | Scoping_pack
|
|
<B>of </B>
|
|
|
|
<B>Longident.t * Types.type_expr</B>
|
|
|
|
<BR> | Recursive_module_require_explicit_type
|
|
<BR> | Apply_generative
|
|
<BR> | Cannot_scrape_alias
|
|
<B>of </B>
|
|
|
|
<B>Path.t</B>
|
|
|
|
<BR> | Badly_formed_signature
|
|
<B>of </B>
|
|
|
|
<B>string * Typedecl.error</B>
|
|
|
|
<BR> | Cannot_hide_id
|
|
<B>of </B>
|
|
|
|
<B>hiding_error</B>
|
|
|
|
<BR> | Invalid_type_subst_rhs
|
|
<BR>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>exception Error </I>
|
|
|
|
<B>of </B>
|
|
|
|
<B>Location.t * Env.t * error</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>exception Error_forward </I>
|
|
|
|
<B>of </B>
|
|
|
|
<B>Location.error</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val report_error </I>
|
|
|
|
:
|
|
<B>Env.t -> Format.formatter -> error -> unit</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>module ImplementationHooks : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>module InterfaceHooks : </I>
|
|
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">Module</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:58 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|