# LibTmux.Snapshot.linksForSession

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

```haskell
linksForSession
  :: Snapshot
  -> SessionRef
  -> Either LookupError [WindowLink]
```

Signature types: [`Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/), [`SessionRef`](/en/haskell/latest/reference/libtmux-snapshot-t-sessionref/), [`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/), [`WindowLink`](/en/haskell/latest/reference/libtmux-snapshot-t-windowlink/).

A session's window links in window-index order, preserving repeated windows.

## Referenced declarations

- [`LibTmux.Snapshot.LookupError`](/en/haskell/latest/reference/libtmux-snapshot-t-lookuperror/) (data type)
- [`LibTmux.Snapshot.SessionRef`](/en/haskell/latest/reference/libtmux-snapshot-t-sessionref/) (data type)
- [`LibTmux.Snapshot.Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/) (data type)
- [`LibTmux.Snapshot.WindowLink`](/en/haskell/latest/reference/libtmux-snapshot-t-windowlink/) (data type)
