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