# LibTmux.Snapshot.lookupPaneOccurrence

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Snapshot.hs#L118
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-snapshot-v-lookuppaneoccurrence/

```haskell
lookupPaneOccurrence
  :: Snapshot
  -> WindowSlot
  -> PaneRef
  -> Either LookupError PaneOccurrence
```

Signature types: [`Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/), [`WindowSlot`](/en/haskell/latest/reference/libtmux-creation-t-windowslot/), [`PaneRef`](/en/haskell/latest/reference/libtmux-snapshot-t-paneref/), [`Either`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Data-Either.html#t:Either), [`LookupError`](/en/haskell/latest/reference/libtmux-snapshot-t-lookuperror/), [`PaneOccurrence`](/en/haskell/latest/reference/libtmux-snapshot-t-paneoccurrence/).

Find a captured pane through an exact session link. Choose the slot even
 when several links lead to the same physical window. Use the occurrence
 as the source or destination of a pane relocation.

## Referenced declarations

- [`LibTmux.Snapshot.LookupError`](/en/haskell/latest/reference/libtmux-snapshot-t-lookuperror/) (data type)
- [`LibTmux.Snapshot.PaneOccurrence`](/en/haskell/latest/reference/libtmux-snapshot-t-paneoccurrence/) (data type)
- [`LibTmux.Snapshot.PaneRef`](/en/haskell/latest/reference/libtmux-snapshot-t-paneref/) (data type)
- [`LibTmux.Snapshot.Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/) (data type)
- [`LibTmux.Creation.WindowSlot`](/en/haskell/latest/reference/libtmux-creation-t-windowslot/) (data type)

## Guides

Pages that discuss `lookupPaneOccurrence`.

- [Change targets and observe pane text](/en/haskell/latest/guides/mutations/)
