---
name: "Depend"
section: "3o"
platform: "linux"
package: "ocaml"
version: "5.5.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Depend"
---

# Depend(3o)

Module dependencies.

## NAME

Depend - Module dependencies.

## Module

Module   Depend

## 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 -\> map\_tree**

*val make\_node* :  **bound\_map -\> map\_tree**

*val weaken\_map* :  **String.Set.t -\> map\_tree -\> 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 -\> Longident.t -\> bound\_map**

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

*val add\_signature* :  **bound\_map -\> Parsetree.signature -\> unit**

*val add\_implementation* :  **bound\_map -\> Parsetree.structure -\> unit**

*val add\_implementation\_binding* :  **bound\_map -\> Parsetree.structure -\> bound\_map**

*val add\_signature\_binding* :  **bound\_map -\> Parsetree.signature -\> bound\_map**
