Ast_helper.Type(3)
π NAME π
okay bestie, welcome to Ast_helper.Type(3) from the OCaml library docs β¨
Ast_helper.Type - Type declarations π«Ά
This page is literally all about type declarations, and the vibe is very βbuilder functions only, no cap.β π
π§© Module π§©
Module Ast_helper.Type
Thatβs the module, icon behavior only. π
π Documentation π
πΈ Module Type πΈ
Module Type
: sig end
Type declarations π
Here are the vals, bestie β every single one, exactly as listed, no skipping, periodt. π
val mkβ the type-declaration maker with all the optional knobs, and yes, every?loc,?attrs,?docs,?text,?params,?constraints,?kind,?priv, and?manifestis right here:
val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
?docs:Docstrings.docs -> ?text:Docstrings.text ->
?params:(Parsetree.core_type * (Asttypes.variance *
Asttypes.injectivity)) list -> ?constraints:(Parsetree.core_type *
Parsetree.core_type * Ast_helper.loc) list -> ?kind:Parsetree.type_kind
-> ?priv:Asttypes.private_flag -> ?manifest:Parsetree.core_type ->
Ast_helper.str -> Parsetree.type_declaration
val constructorβ the constructor-declaration val, with all its optional args present and accounted for:
val constructor : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
?info:Docstrings.info -> ?vars:Ast_helper.str list ->
?args:Parsetree.constructor_arguments -> ?res:Parsetree.core_type ->
Ast_helper.str -> Parsetree.constructor_declaration
val fieldβ the label-declaration val, looking very main character with?loc,?attrs,?info, and?mut:
val field : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
?info:Docstrings.info -> ?mut:Asttypes.mutable_flag -> Ast_helper.str ->
Parsetree.core_type -> Parsetree.label_declaration
Thatβs the whole page, bestie β short, sweet, and absolutely slaying. ππ
xoxo, this cutie was brought to you by OCamldoc and stamped 2026-06-22 β 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