package coq-core
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b
doc/coq-core.vernac/Declaremods/Interp/index.html
Module Declaremods.InterpSource
declare_module id fargs typ exprs declares module id, from functor arguments fargs, with final type typ. exprs is usually of length 1 (Module definition with a concrete body), but it could also be empty ("Declare Module", with non-empty typ), or multiple (body of the shape M <+ N <+ ...).
val declare_module :
Names.Id.t ->
module_params_expr ->
module_expr module_signature ->
module_expr list ->
Names.ModPath.tval start_module :
Lib.export ->
Names.Id.t ->
module_params_expr ->
module_expr module_signature ->
Names.ModPath.tModule types
declare_modtype interp_modast id fargs typs exprs Similar to declare_module, except that the types could be multiple
val declare_modtype :
Names.Id.t ->
module_params_expr ->
module_expr list ->
module_expr list ->
Names.ModPath.tval register_library :
library_name ->
Safe_typing.compiled_library ->
library_objects ->
Safe_typing.vodigest ->
Univ.ContextSet.t ->
unitimport_module export mp imports the module mp. It modifies Nametab and performs the open_object function for every object of the module. Raises Not_found when mp is unknown or when mp corresponds to a functor. If export is true, the module is also opened every time the module containing it is.
val import_module :
Libobject.open_filter ->
export:Lib.export_flag ->
Names.ModPath.t ->
unitval import_modules :
export:Lib.export_flag ->
(Libobject.open_filter * Names.ModPath.t) list ->
unitSame as import_module but for multiple modules, and more optimized than iterating import_module.
Include