# LibTmux.Server.movePaneWith

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

```haskell
movePaneWith
  :: MutationOptions
  -> Server
  -> PaneOccurrence
  -> PaneOccurrence
  -> PaneMoveOptions
  -> IO PaneRelocationReceipt
```

Signature types: [`MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/), [`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/).

Move with an explicit mutation deadline. The receipt describes primary
 acceptance. Capture again to verify placement and the effects of hooks.
 An ambiguous result retains recovery and is never retried automatically.

## Referenced declarations

- [`LibTmux.Server.MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/) (data type)
- [`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 `movePaneWith`.

- [`if-shell`](/en/tmux/latest/manual/if-shell/)
- [`move-pane`](/en/tmux/latest/manual/move-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_move_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_move_pane_entry/) (attribute)
- [`cmd_join_pane_exec`](/en/tmux/latest/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function)
