package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 5.2.1

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-5.2.1.tar.gz
sha256=2d0f8090951a97a2c0e5b8a11e90096c0e1791d2e471e4a67f87e3b974044cd0

doc/compiler-libs.common/Load_path/Dir/index.html

Module Load_path.Dir

type t

Represent one directory in the load path.

val create : hidden:bool -> string -> t
val path : t -> string
val files : t -> string list

All the files in that directory. This doesn't include files in sub-directories of this directory.

val hidden : t -> bool

If the modules in this directory should not be bound in the initial scope

val find : t -> string -> string option

find dir fn returns the full path to fn in dir.

val find_normalized : t -> string -> string option

As find, but search also for uncapitalized name, i.e. if name is Foo.ml, either /path/Foo.ml or /path/foo.ml may be returned.

OCaml

Innovation. Community. Security.