package merlin-lib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=f6d6f7a266141e358c1a869612c8135c859185d547ea3ba5c9ad7bb67fe30cc1
sha512=4f272bdb028fd984fef406f7e1eadd0a3ab99d94016316f1b842782b1d1bba2bd50dcf3b4021c2096c6d9b5e5f9f6bae61bedcfd9f933f15c190e01777ef83a9
doc/merlin-lib.ocaml_utils/Ocaml_utils/Load_path/index.html
Module Ocaml_utils.Load_path
Source
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.
Add a directory to the end of the load path (i.e. at lowest priority.)
Remove a directory from the load path
Remove all directories
init l
is the same as reset (); List.iter add_dir (List.rev l)
Return the list of directories passed to add_dir
so far.
Locate 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.
Same 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.
Old name for append_dir
append_dir d
adds d
to the end of the load path (i.e. at lowest priority.
prepend_dir d
adds d
to the start of the load path (i.e. at highest priority.