Depend(3)
π NAME π
okay bestie, this is Depend(3) from the OCaml library, and it's giving module dependencies energy from the very first line. β¨
Depend - Module dependencies. That's the whole name-and-description vibe, no cap. π
π¦ MODULE π¦
Module Depend β yes bestie, that's the module we're talking about. π«Ά
β¨ DOCUMENTATION β¨
first things first, the module signature is literally right here:
Module Depend
: sig end
and the actual documentation topic is Module dependencies. iconic, honestly. π₯
π¨ Warning: this module is unstable and part of Compiler_libs . π¨ Like, do not build your entire personality on it, bestie. It said what it said. π
there's also a lil module alias situation:
module String : (module Misc.Stdlib.String)
then the types, which are giving very structured main-character energy:
type map_tree =
| Node of String.Set.t * bound_map
type bound_map = map_tree String.Map.t
and now the values, in order, because we do not skip entries in this house:
val make_leaf : string -> map_treeβ signature only in the source, bestie. πval make_node : bound_map -> map_treeβ again, just the signature. slay. β¨val weaken_map : String.Set.t -> map_tree -> map_treeβ signature only, no extra notes. πval free_structure_names : String.Set.t refβ Collect free module identifiers in the a.s.t. that's the whole job, fr fr. π¦val pp_deps : string list refβ Dependencies found by preprocessing tools. periodt. πΈval open_module : bound_map -> Longident.t -> bound_mapβ signature only, bestie. πval add_use_file : bound_map -> Parsetree.toplevel_phrase list -> unitβ signature only. π«Άval add_signature : bound_map -> Parsetree.signature -> unitβ signature only. πval add_implementation : bound_map -> Parsetree.structure -> unitβ signature only. β¨val add_implementation_bindingβ this one wraps in the original, so here it is exactly:
val add_implementation_binding : bound_map -> Parsetree.structure ->
bound_map
val add_signature_bindingβ also wraps in the original, so:
val add_signature_binding : bound_map -> Parsetree.signature ->
bound_map
made with the OCamldoc source/version, dated 2026-06-22, for Depend(3) β mwah πβ¨
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms