# LibTmux.Creation.WindowPlacement

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** data type
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Creation.hs#L65
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-creation-t-windowplacement/

```haskell
data WindowPlacement
```

A session's next free index, an exact slot, or insertion beside a slot.
 Relative insertion can shift existing indices before later creation fails;
 failure does not promise rollback. Grouped sessions can share these effects.
 If a relative slot is vacant, tmux creates at that index without insertion.
 [`After`](/en/haskell/latest/reference/libtmux-creation-v-after/) refuses index 2147483647 before dispatch: no larger index exists.

## Instances

- instance [Eq](https://hackage.haskell.org/package/base-4.22.0.0/docs/Data-Eq.html#t:Eq) [`WindowPlacement`](/en/haskell/latest/reference/libtmux-creation-t-windowplacement/) ([Source](https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Creation.hs#L70))

- instance [Show](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:Show) [`WindowPlacement`](/en/haskell/latest/reference/libtmux-creation-t-windowplacement/) ([Source](https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Creation.hs#L70))

## Members

### Common operations

- [`After`](/en/haskell/latest/reference/libtmux-creation-v-after/) (data constructor): Insert after this slot's current occupant.

### Other members

- [`At`](/en/haskell/latest/reference/libtmux-creation-v-at/) (data constructor): Create at the exact index, subject to :obj:`WindowCollision <LibTmux.Creation#t:WindowCollision>`.
- [`Before`](/en/haskell/latest/reference/libtmux-creation-v-before/) (data constructor): Insert before this slot's current occupant.
- [`NextFree`](/en/haskell/latest/reference/libtmux-creation-v-nextfree/) (data constructor): Let tmux choose a free index from the session's base-index.

## Referenced declarations

- [`LibTmux.Creation.WindowPlacement`](/en/haskell/latest/reference/libtmux-creation-t-windowplacement/) (data type)

## Guides

Pages that discuss `WindowPlacement`.

- [Create sessions, windows and panes](/en/haskell/latest/guides/creation/)
