package rocq-runtime
Install
Dune Dependency
Authors
Maintainers
Sources
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be
doc/rocq-runtime.vernac/Loadpath/index.html
Module Loadpath
Source
* Load paths.
A load path is a physical path in the file system; to each load path is associated a Rocq DirPath.t
(the "logical" path of the physical path).
Type of loadpath bindings.
Get the logical path (Rocq module hierarchy) of a loadpath.
Get the physical path of a loadpath
Remove the current logical path binding associated to a given physical path, if any.
Get the binding associated with a physical path. Raises Not_found
if there is none.
get the list of load paths that correspond to a given logical path
val find_extra_dep_with_logical_path :
?loc:Loc.t ->
from:Names.DirPath.t ->
file:string ->
unit ->
CUnix.physical_path
finds a file rooted in from.
Locate a file among the registered paths. Do not use this function, as it does not respect the visibility of paths.
val locate_qualified_library :
?root:Names.DirPath.t ->
Libnames.qualid ->
(Names.DirPath.t * CUnix.physical_path, Error.t) Result.t
Locates a library by implicit name.
Extending the Load Path
type vo_path = {
unix_path : string;
(*Filesystem path containing vo/ml files
*)coq_path : Names.DirPath.t;
(*Rocq prefix for the path
*)implicit : bool;
(*
*)implicit = true
avoids having to qualify withcoq_path
true for -R, false for -Q in command linerecursive : bool;
(*
*)recursive
will determine whether we explore sub-directories
}
Adds a path to the Rocq and ML paths