---
name: "Attr_helper"
section: "3o"
platform: "linux"
package: "ocaml"
version: "5.5.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Attr_helper"
---

# Attr\_helper(3o)

Helpers for attributes

## NAME

Attr\_helper - Helpers for attributes

## Module

Module   Attr\_helper

## 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 -\> 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"**

*val has\_no\_payload\_attribute* :  **string -\> Parsetree.attributes -\> bool**

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

*val report\_error* :  **error Format\_doc.format\_printer**

*val report\_error\_doc* :  **error Format\_doc.printer**
