Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux-haskell has not been released. Its API may change during development. This site's structure and URLs may change too.

Haskell API

module libtmux-haskell latest

LibTmux.Id

Distinct session, physical-window and physical-pane IDs.

Source and package
Qualified name
LibTmux.Id
Package
libtmux-haskell
Source
src/LibTmux/Id.hs

Description#

Parsing and rendering are pure. An ID carries no endpoint, server lifetime or liveness evidence. Render an ID for external text; use its numeric accessor when an application needs the mathematical value.

Start with parseSessionId, parseWindowId or parsePaneId. Each type's documentation links its parser and renderer. Contextual numeric indices belong to LibTmux.Value.

>>> :set -XOverloadedStrings
>>> fmap renderWindowId (parseWindowId "@17")
Right "@17"
>>> either (const "rejected") renderPaneId (parsePaneId "@17")
"rejected"

Members13#

Common operations1#

  • IdError data type Invalid canonical syntax, entity prefix or native unsigned range. Diagnostics retain at most 64 characters of input.

Other members12#

Guides#

Pages that discuss LibTmux.Id.

Esc

Type to search.

Reference previewOpen reference