diff options
author | 2018-01-31 04:55:52 +0100 | |
---|---|---|
committer | 2018-02-05 02:49:52 +0100 | |
commit | c13213ced52f8f1383d5bed9c5a826d111603318 (patch) | |
tree | 4999815ee37d7514b0337fcb5445bad98a00012f /toplevel/coqinit.mli | |
parent | 0e9161af86787d4f368554111001cab73bb7b323 (diff) |
[stm] [toplevel] Make loadpath a parameter of the document.
We allow to provide a Coq load path at document creation time. This is
natural as the document naming process is sensible to a particular
load path, thus clarifying this API point.
The changes are minimal, as #6663 did most of the work here. The only
point of interest is that we have split the initial load path into two
components:
- a ML-only load path that is used to locate "plugable" toplevels.
- the normal loadpath that includes `theories` and `user-contrib`,
command line options, etc...
Diffstat (limited to 'toplevel/coqinit.mli')
-rw-r--r-- | toplevel/coqinit.mli | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/toplevel/coqinit.mli b/toplevel/coqinit.mli index 089847f5d..0d2da84bb 100644 --- a/toplevel/coqinit.mli +++ b/toplevel/coqinit.mli @@ -19,5 +19,10 @@ val push_include : string -> Names.DirPath.t -> bool -> unit (** [push_include phys_path log_path implicit] *) val push_ml_include : string -> unit -val init_load_path : load_init:bool -> Mltop.coq_path list + val init_ocaml_path : unit -> unit + +(* LoadPath for toploop toplevels *) +val toplevel_init_load_path : unit -> Mltop.coq_path list +(* LoadPath for Coq user libraries *) +val libs_init_load_path : load_init:bool -> Mltop.coq_path list |