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
- 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