Attr\_helper(3) OCaml library Attr\_helper(3)

# [NAME](#NAME)

Attr\_helper - Helpers for attributes

# [Module](#Module)

Module Attr\_helper

# [Documentation](#Documentation)

Module **Attr\_helper**  
: **sig end**

Helpers for attributes

Warning: this module is unstable and part of **Compiler\_libs** .

*type error* =  
| Multiple\_attributes **of** **string**  
| No\_payload\_expected **of** **string**

*val get\_no\_payload\_attribute* : **string list -&gt; Parsetree.attributes -&gt; string Asttypes.loc option**

The **string list** argument of the following functions is a list of alternative names for the attribute we are looking for. For instance:

```


      ["foo"; "ocaml.foo"]


    
```

*val has\_no\_payload\_attribute* : **string list -&gt; Parsetree.attributes -&gt; bool**

*exception Error* **of** **Location.t * error**

*val report\_error* : **Format.formatter -&gt; error -&gt; unit**

2026-09-15 OCamldoc

---

Document: Attr_helper(3o) from ocaml-4 4.14.4-r3 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
