Attr_helper(3)

πŸ’– NAME πŸ’–

Hey bestie, welcome to Attr_helper(3) from the OCaml library 🌸 This page is all about the Attr_helper module, and its whole personality is Helpers for attributes ✨

🧩 Module 🧩

Module Attr_helper

πŸ“š Documentation πŸ“š

Module Attr_helper β€” and the signature line is literally : sig end 🫢

It's giving Helpers for attributes, but first, the big warning:

Warning: this module is unstable and part of Compiler_libs. 🚨 No cap, keep that in mind before you go building your whole life on it.

😭 type error 😭

type error =
 | Multiple_attributes of string
 | No_payload_expected of string

✨ get_no_payload_attribute ✨

val get_no_payload_attribute : string -> Parsetree.attributes -> string Asttypes.loc option

The string argument of the following functions is the name of the attribute we are looking for. If the argument is "foo", these functions will find attributes with the name "foo" or "ocaml.foo" πŸ‘€

πŸŽ€ has_no_payload_attribute πŸŽ€

val has_no_payload_attribute : string -> Parsetree.attributes -> bool

πŸ’€ exception Error πŸ’€

exception Error of Location.t * error

🩷 report_error 🩷

val report_error : error Format_doc.format_printer

πŸ¦‹ report_error_doc πŸ¦‹

val report_error_doc : error Format_doc.printer

That's the whole page, bestie β€” no cap, nothing skipped. This was Attr_helper(3) from the OCaml library, generated by OCamldoc, dated 2026-06-22 πŸ’…πŸ’– Bye and slay your attributes ✨

πŸ“¦ where this page comes from