# LibTmux.Snapshot.lookupSessionId

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

```haskell
lookupSessionId
  :: Snapshot -> SessionId -> Either LookupError Session
```

Signature types: [`Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/), [`SessionId`](/en/haskell/latest/reference/libtmux-id-t-sessionid/), [`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/), [`Session`](/en/haskell/latest/reference/libtmux-snapshot-t-session/).

Select the session currently observed under an ID in this snapshot.
 This creates no continuity guarantee with a previously opened Server.

## Referenced declarations

- [`LibTmux.Snapshot.LookupError`](/en/haskell/latest/reference/libtmux-snapshot-t-lookuperror/) (data type)
- [`LibTmux.Snapshot.Session`](/en/haskell/latest/reference/libtmux-snapshot-t-session/) (data type)
- [`LibTmux.Id.SessionId`](/en/haskell/latest/reference/libtmux-id-t-sessionid/) (data type)
- [`LibTmux.Snapshot.Snapshot`](/en/haskell/latest/reference/libtmux-snapshot-t-snapshot/) (data type)
