# LibTmux.Snapshot.lookupWindow

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

```haskell
lookupWindow
  :: Snapshot -> WindowRef -> Either LookupError Window
```

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/), [`Window`](/en/haskell/latest/reference/libtmux-snapshot-t-window/).

Resolve the supplied generation's physical window in this snapshot.

## Referenced declarations

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