HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulesemaphore-compat-2.0.1Haskell2010

System.Semaphore.Internal.Version

Semaphore protocol version and versioned semaphore identifiers.

  • 4 types
  • 5 values

The identifier string of a semaphore: a serialised SemaphoreName used for inter-process communication (e.g. as a command line argument).

The specific format of this name string depends on the protocol version:

  • For version 1, this is the unadorned semaphore name.

  • For version N >= 2, the semaphore name is prefixed with v<N>-.

newtypenewtype SemaphoreProtocolVersion
#

The semaphore protocol version currently being used.

The version tracks the IPC mechanism, not the library version:

  • POSIX: 2 (domain sockets, replacing v1 system semaphores).

  • Windows: 1 (Win32 named semaphores, unchanged from v1).

  • Unsupported platforms: 0 (no compatible IPC backend).

Instances3Eq, Ord, Show
datadata SemaphoreError
#

Errors that can occur when creating or opening a semaphore.

Constructors

Instances3Eq, Show, Exception