module Load_path:sig..end
Management of include directories.
This module offers a high level interface to locating files in the
load path, which is constructed from -I command line flags and a few
other parameters.
It makes the assumption that the contents of include directories doesn't change during the execution of the compiler.
val add_dir : string -> unitAdd a directory to the end of the load path (i.e. at lowest priority.)
val remove_dir : string -> unitRemove a directory from the load path
val reset : unit -> unitRemove all directories
val init : string list -> unitinit l is the same as reset (); List.iter add_dir (List.rev l)
val get_paths : unit -> string listReturn the list of directories passed to add_dir so far.
val find : string -> stringLocate a file in the load path. Raise Not_found if the file
cannot be found. This function is optimized for the case where the
filename is a basename, i.e. doesn't contain a directory
separator.
val find_uncap : string -> stringSame as find, but search also for uncapitalized name, i.e. if
name is Foo.ml, allow /path/Foo.ml and /path/foo.ml to match.
module Dir:sig..end
val add : Dir.t -> unitOld name for Load_path.append_dir
val append_dir : Dir.t -> unitappend_dir d adds d to the end of the load path (i.e. at lowest
priority.
val prepend_dir : Dir.t -> unitprepend_dir d adds d to the start of the load path (i.e. at highest
priority.
val get : unit -> Dir.t listSame as get_paths (), except that it returns a Dir.t list.