Depend(3) OCaml library Depend(3)

# [NAME](#NAME)

Depend - Module dependencies.

# [Module](#Module)

Module Depend

# [Documentation](#Documentation)

Module **Depend**  
: **sig end**

Module dependencies.

Warning: this module is unstable and part of **Compiler\_libs** .

*module String :* **(module Misc.Stdlib.String)**

*type map\_tree* =  
| Node **of** **String.Set.t * bound\_map**

*type bound\_map* = **map\_tree String.Map.t**

*val make\_leaf* : **string -&gt; map\_tree**

*val make\_node* : **bound\_map -&gt; map\_tree**

*val weaken\_map* : **String.Set.t -&gt; map\_tree -&gt; map\_tree**

*val free\_structure\_names* : **String.Set.t ref**

Collect free module identifiers in the a.s.t.

*val pp\_deps* : **string list ref**

Dependencies found by preprocessing tools.

*val open\_module* : **bound\_map -&gt; Longident.t -&gt; bound\_map**

*val add\_use\_file* : **bound\_map -&gt; Parsetree.toplevel\_phrase list -&gt; unit**

*val add\_signature* : **bound\_map -&gt; Parsetree.signature -&gt; unit**

*val add\_implementation* : **bound\_map -&gt; Parsetree.structure -&gt; unit**

*val add\_implementation\_binding* : **bound\_map -&gt; Parsetree.structure -&gt; bound\_map**

*val add\_signature\_binding* : **bound\_map -&gt; Parsetree.signature -&gt; bound\_map**

2026-10-01 OCamldoc

---

Document: Depend(3o) from ocaml 5.5.1-r1 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
