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β optionalDocstrings.docs, for the documentation girlies π?text:Docstrings.textβ optionalDocstrings.texttoo, 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
- 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