HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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