# LibTmux.Server.joinPane

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Server.hs#L806
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-server-v-joinpane/

```haskell
joinPane
  :: Server
  -> PaneOccurrence
  -> PaneOccurrence
  -> PaneMoveOptions
  -> IO PaneRelocationReceipt
```

Signature types: [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`PaneOccurrence`](/en/haskell/latest/reference/libtmux-snapshot-t-paneoccurrence/), [`PaneMoveOptions`](/en/haskell/latest/reference/libtmux-creation-t-panemoveoptions/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO), [`PaneRelocationReceipt`](/en/haskell/latest/reference/libtmux-creation-t-panerelocationreceipt/).

Run native [`join-pane`](/en/tmux/latest/manual/join-pane/) with the same contextual guards as [`movePane`](/en/haskell/latest/reference/libtmux-server-v-movepane/).

## Referenced declarations

- [`LibTmux.Creation.PaneMoveOptions`](/en/haskell/latest/reference/libtmux-creation-t-panemoveoptions/) (data type)
- [`LibTmux.Snapshot.PaneOccurrence`](/en/haskell/latest/reference/libtmux-snapshot-t-paneoccurrence/) (data type)
- [`LibTmux.Creation.PaneRelocationReceipt`](/en/haskell/latest/reference/libtmux-creation-t-panerelocationreceipt/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)

## tmux command

The tmux commands behind `joinPane`.

- [`if-shell`](/en/tmux/latest/manual/if-shell/)
- [`join-pane`](/en/tmux/latest/manual/join-pane/) (when both pane occurrences match)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_if_shell_entry`](/en/tmux/latest/reference/c-variable-cmd_if_shell_entry/) (attribute)
- [`cmd_if_shell_exec`](/en/tmux/latest/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function)
- [`cmd_join_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_join_pane_entry/) (attribute)
- [`cmd_join_pane_exec`](/en/tmux/latest/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function)
