HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleport-utils-0.2.1.0Haskell2010

Network.Socket.Free

Synopsis

Open a TCP socket, get its port and close the socket. Useful when you have an external service that needs a fresh port.

There is a small race condition present: It's possible to get a free port only for it to be bound by some other process or thread before used

Since 0.2.1