# LibTmux.Snapshot.labelText

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/663e212622a02aa74a9bdc8ff71e2b45fcb1d4d5/src/LibTmux/Snapshot.hs#L144
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-snapshot-v-labeltext/

```haskell
labelText :: TmuxText -> Either UnicodeException Text
```

Signature types: [`TmuxText`](/en/haskell/latest/reference/libtmux-snapshot-t-tmuxtext/), [`Either`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Data-Either.html#t:Either), [`UnicodeException`](https://hackage.haskell.org/package/text-2.1.3/docs/Data-Text-Encoding-Error.html#t:UnicodeException), [`Text`](https://hackage.haskell.org/package/text-2.1.3/docs/Data-Text.html#t:Text).

Decode a label as UTF-8, retaining byte access on failure.

## Referenced declarations

- [`LibTmux.Snapshot.TmuxText`](/en/haskell/latest/reference/libtmux-snapshot-t-tmuxtext/) (data type)
