# LibTmux.Query.Fields.clientAttachment

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Query/Fields.hs#L231
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-query-fields-v-clientattachment/

```haskell
clientAttachment :: ToOptional Client ClientAttachment
```

Signature types: [`ToOptional`](/en/haskell/latest/reference/libtmux-query-t-tooptional/), [`Client`](/en/haskell/latest/reference/libtmux-snapshot-t-client/), [`ClientAttachment`](/en/haskell/latest/reference/libtmux-snapshot-t-clientattachment/).

Optional captured selection, used with [`optionalRelated`](/en/haskell/latest/reference/libtmux-query-v-optionalrelated/). Absence fails
 that positive predicate and satisfies its negation.

## Referenced declarations

- [`LibTmux.Snapshot.Client`](/en/haskell/latest/reference/libtmux-snapshot-t-client/) (data type)
- [`LibTmux.Snapshot.ClientAttachment`](/en/haskell/latest/reference/libtmux-snapshot-t-clientattachment/) (data type)
- [`LibTmux.Query.ToOptional`](/en/haskell/latest/reference/libtmux-query-t-tooptional/) (data type)

## Guides

Pages that discuss `clientAttachment`.

- [API documentation](/en/haskell/latest/guides/api-documentation/)
