diff options
| author | Théo Zimmermann | 2020-03-04 11:09:35 +0100 |
|---|---|---|
| committer | Théo Zimmermann | 2020-03-04 11:09:35 +0100 |
| commit | 2937fe5c1bb14a7cb7f00bb6e8d418ece00a7f50 (patch) | |
| tree | c18bc900a3434ab12360f9aa893245fccbf5c740 /vernac/loadpath.mli | |
| parent | eac2e33faa703e1aa99155633fd572ede6fe5dd6 (diff) | |
| parent | 15ed46fffc962159ca6158aa791b5258fd42ab3c (diff) | |
Merge PR #11618: [loadpath] Rework and simplify ML loadpath handling
Reviewed-by: SkySkimmer
Ack-by: Zimmi48
Reviewed-by: herbelin
Reviewed-by: maximedenes
Diffstat (limited to 'vernac/loadpath.mli')
| -rw-r--r-- | vernac/loadpath.mli | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/vernac/loadpath.mli b/vernac/loadpath.mli index 47d2d34125..68212b9a47 100644 --- a/vernac/loadpath.mli +++ b/vernac/loadpath.mli @@ -64,26 +64,17 @@ val try_locate_absolute_library : DirPath.t -> string (** {6 Extending the Load Path } *) (** Adds a path to the Coq and ML paths *) -type add_ml = AddNoML | AddTopML | AddRecML - -type vo_path_spec = { - unix_path : string; +type vo_path = + { unix_path : string (** Filesystem path containing vo/ml files *) - coq_path : Names.DirPath.t; + ; coq_path : DirPath.t (** Coq prefix for the path *) - implicit : bool; + ; implicit : bool (** [implicit = true] avoids having to qualify with [coq_path] *) - has_ml : add_ml; - (** If [has_ml] is true, the directory will also be search for plugins *) -} - -type coq_path_spec = - | VoPath of vo_path_spec - | MlPath of string - -type coq_path = { - path_spec: coq_path_spec; - recursive: bool; -} + ; has_ml : bool + (** If [has_ml] is true, the directory will also be added to the ml include path *) + ; recursive : bool + (** [recursive] will determine whether we explore sub-directories *) + } -val add_coq_path : coq_path -> unit +val add_vo_path : vo_path -> unit |
