# LibTmux.Snapshot.panesForWindow

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

```haskell
panesForWindow
  :: Snapshot -> WindowRef -> Either LookupError [Pane]
```

Signature types: [`Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/), [`WindowRef`](/en/haskell/latest/reference/libtmux-snapshot-t-windowref/), [`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/), [`Pane`](/en/haskell/latest/reference/libtmux-snapshot-t-pane/).

A physical window's panes in pane-index order, then numeric ID order.

## Referenced declarations

- [`LibTmux.Snapshot.LookupError`](/en/haskell/latest/reference/libtmux-snapshot-t-lookuperror/) (data type)
- [`LibTmux.Snapshot.Pane`](/en/haskell/latest/reference/libtmux-snapshot-t-pane/) (data type)
- [`LibTmux.Snapshot.Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/) (data type)
- [`LibTmux.Snapshot.WindowRef`](/en/haskell/latest/reference/libtmux-snapshot-t-windowref/) (data type)
