package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=13d2793fc6413aac5168822313e4864e
sha512=ec8379df34ba6e72bcf0218c66fef248b0e4c5c436fb3f2d7dd83a2c5f349dd0874a67484fcf9c0df3e5d5937d7ae2b2a79274725595b4b0065a381f70769b42
doc/coq-core.vernac/Declaremods/Interp/index.html
Module Declaremods.Interp
Source
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.t
val start_module :
Lib.export ->
Names.Id.t ->
module_params_expr ->
module_expr module_signature ->
Names.ModPath.t
Module 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.t
val register_library :
library_name ->
Safe_typing.compiled_library ->
library_objects ->
Safe_typing.vodigest ->
Univ.ContextSet.t ->
unit
import_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 ->
unit
val import_modules :
export:Lib.export_flag ->
(Libobject.open_filter * Names.ModPath.t) list ->
unit
Same as import_module
but for multiple modules, and more optimized than iterating import_module
.
Include