Ast_helper.Opn(3)

πŸ’– NAME πŸ’–

okay bestie, welcome to the Ast_helper.Opn(3) page from the OCaml library β€” this one is all about Opens, and it's short, sweet, and very much a "one function, zero drama" situation. πŸ’…


🧩 Module 🧩

  • Ast_helper.Opn β€” the module this page is about, periodt. πŸ‘‘

✨ Documentation ✨

πŸŽ€ Module Opn πŸŽ€

The module is Opn, and its signature is literally:

: sig end

yep, that's the whole thing β€” no extra members hiding in there. : sig end is giving minimalist icon energy. 🫢

🌸 Opens 🌸

This is the Opens part, and it has exactly one value: mk. Here's the signature, copied exactly so you can trust it:

val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
       ?docs:Docstrings.docs -> ?override:Asttypes.override_flag -> 'a -> 'a
       Parsetree.open_infos

So mk takes an 'a and hands you back an 'a Parsetree.open_infos. The optional args in the signature are ?loc:Ast_helper.loc, ?attrs:Ast_helper.attrs, ?docs:Docstrings.docs, and ?override:Asttypes.override_flag β€” all present and accounted for, no cap. ✨

bestie note: those ? bits are optional args in the signature, and the return type is 'a Parsetree.open_infos. That's the whole API tea. 🍡

later bestie πŸ’… β€” this page is from OCamldoc, dated 2026-06-22, and it's the Ast_helper.Opn(3) page in the OCaml library. mwah 🫢

πŸ“¦ where this page comes from