Ast_helper.Pat(3)
Okay bestie, welcome to the Ast_helper.Pat(3) page from the OCaml library β it's the Patterns corner of Ast_helper, and we're going through every single val together. No skipping, no cap. π
β¨
β¨ NAME β¨
Ast_helper.Pat - Patterns
Like, that's the whole name section, and it ate. π
π Module π
Module Ast_helper.Pat
That's the module address, bestie. Keep it cute and keep it exact. π«Ά
π Documentation π
The docs open with the nested module situation:
Module Pat
: sig end
Then we get the Patterns label and the full signature lineup. You'll see ?loc:Ast_helper.loc and ?attrs:Ast_helper.attrs showing up all over β I'm keeping them exactly where they belong. π
πΈ Patterns πΈ
Okay, the whole squad, one bullet each, signatures verbatim:
mkβval mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern_desc -> Parsetree.patternattrβval attr : Parsetree.pattern -> Parsetree.attribute -> Parsetree.patternanyβval any : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> unit -> Parsetree.patternvarβval var : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.str -> Parsetree.patternaliasβval alias : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Ast_helper.str -> Parsetree.patternconstantβval constant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.constant -> Parsetree.patternintervalβval interval : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.constant -> Parsetree.constant -> Parsetree.patterntupleβval tuple : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> (string option * Parsetree.pattern) list -> Asttypes.closed_flag -> Parsetree.patternconstructβval construct : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> (Ast_helper.str list * Parsetree.pattern) option -> Parsetree.patternvariantβval variant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Asttypes.label -> Parsetree.pattern option -> Parsetree.patternrecordβval record : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> (Ast_helper.lid * Parsetree.pattern) list -> Asttypes.closed_flag -> Parsetree.patternarrayβval array : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern list -> Parsetree.patternor_βval or_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern -> Parsetree.patternconstraint_βval constraint_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.core_type -> Parsetree.patterntype_βval type_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.patternlazy_βval lazy_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.patternunpackβval unpack : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.str_opt -> Parsetree.package_type option -> Parsetree.patternopen_βval open_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.pattern -> Parsetree.patternexception_βval exception_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.patterneffect_βval effect_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern -> Parsetree.patternextensionβval extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.extension -> Parsetree.pattern
That's the whole list, bestie. Every val, every optional arg, every return type β all present and accounted for. π¦π
And that's the page! This cutie came from OCamldoc, dated 2026-06-22, and it lives at Ast_helper.Pat(3). Bye, have fun with your patterns! π
ππ
π¦ 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