# LibTmux.Options.lookupHook

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Options.hs#L108
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-options-v-lookuphook/

```haskell
lookupHook :: Capabilities -> Text -> Maybe HookInfo
```

Signature types: [`Capabilities`](/en/haskell/latest/reference/libtmux-capabilities-t-capabilities/), [`Text`](https://hackage.haskell.org/package/text-2.1.3/docs/Data-Text.html#t:Text), [`Maybe`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Data-Maybe.html#t:Maybe), [`HookInfo`](/en/haskell/latest/reference/libtmux-options-t-hookinfo/).

Look up the event's canonical name. Removed or unknown hooks are absent.

## Referenced declarations

- [`LibTmux.Capabilities.Capabilities`](/en/haskell/latest/reference/libtmux-capabilities-t-capabilities/) (data type)
- [`LibTmux.Options.HookInfo`](/en/haskell/latest/reference/libtmux-options-t-hookinfo/) (data type)

## Guides

Pages that discuss `lookupHook`.

- [Read and change options and hooks](/en/haskell/latest/guides/options/)
