Ast_helper.Mb(3)

πŸ’– NAME πŸ’–

Ast_helper.Mb β€” Module bindings πŸŽ€

Ok so like, quick vibe check: this is the OCaml library manual, and this lil page is all about Ast_helper.Mb, the module-bindings girlie. Periodt. ✨


πŸ¦‹ Module πŸ¦‹

Module β€” Ast_helper.Mb

That's it, that's the whole module path. No cap.


🌸 Documentation 🌸

So under the hood it's literally just:

Module Mb
 : sig end

Empty sig, main character energy. She contains multitudes (well, one val). πŸ’…

πŸŽ€ Module bindings πŸŽ€

Here's the one function, and bestie, it is iconic:

val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
?docs:Docstrings.docs -> ?text:Docstrings.text -> Ast_helper.str_opt ->
Parsetree.module_expr -> Parsetree.module_binding

Let me break the vibe check down for you, because the way that this signature ate:

  • ?loc:Ast_helper.loc β€” optional location, iykyk πŸ—ΊοΈ
  • ?attrs:Ast_helper.attrs β€” optional attributes, sprinkle sprinkle ✨
  • ?docs:Docstrings.docs β€” optional Docstrings.docs, for the documentation girlies πŸ“
  • ?text:Docstrings.text β€” optional Docstrings.text too, we love options πŸ’–
  • Ast_helper.str_opt β€” a required positional arg, this one's not optional bestie 🫢
  • Parsetree.module_expr β€” another required positional, the module expression πŸ”₯
  • Parsetree.module_binding β€” and you get a module binding back, slay πŸ‘‘
Heads up babes: the ?-prefixed ones are optional, the last two are not. Don't @ me, that's just how the signature is. πŸ’€

That's the whole page fr fr β€” nothing more hiding in there, every option and type accounted for, nothing skipped. 🌈

Cute lil sign-off: this cutie came from OCamldoc, dated 2026-06-22, and it's giving docs-that-were-last-touched-in-the-future energy. πŸ’œ Everyone say thank you to the doc generator. πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from