Ast_helper.Ms(3)

💅 NAME 💅

Ast_helper.Ms — Module substitutions. This is the Ast_helper.Ms(3) page from the OCaml library manual, and yes bestie, we’re getting into it. ✨


🧚 Module 🧚

Module Ast_helper.Ms

🌸 Documentation 🌸

The module is literally:

Module Ms
 : sig end

Module substitutions. That’s the whole vibe of this page. 🎀

Here’s the one function it’s serving up:

val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
?docs:Docstrings.docs -> ?text:Docstrings.text -> Ast_helper.str ->
Ast_helper.lid -> Parsetree.module_substitution

So mk takes these optional labeled arguments:

  • ?loc:Ast_helper.loc — optional loc argument, typed as Ast_helper.loc.
  • ?attrs:Ast_helper.attrs — optional attrs argument, typed as Ast_helper.attrs.
  • ?docs:Docstrings.docs — optional docs argument, typed as Docstrings.docs.
  • ?text:Docstrings.text — optional text argument, typed as Docstrings.text.

Then it takes an Ast_helper.str, then an Ast_helper.lid, and returns a Parsetree.module_substitution. That’s the signature, no cap. 🫶


Friendly reminder: this page only documents Ast_helper.Ms, its Ms module signature, and mk. Don’t go inventing extra behavior for it — the manual is giving exactly what it’s giving. 💀

Signed, sealed, delivered by OCamldoc on 2026-06-22 — page Ast_helper.Ms(3), from the OCaml library manual. Periodt. 💖✨

📦 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