HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulenetwork-run-0.4.4Haskell2010

Network.Run.TCP

Simple functions to run TCP clients and servers.

  • 1 type
  • 14 values

Server

6 declarations

Open socket for server use, and set the provided options before binding.

In addition to the given options, the socket is configured to

  • allow reuse of local addresses (SO_REUSEADDR)

  • automatically be closed during a successful execve (FD_CLOEXEC)

  • bind to the address specified

  • listen with queue length with 1024

Client

9 declarations