hw-polysemy-0.2.4.1: Opinionated polysemy library
Safe HaskellSafe-Inferred
LanguageGHC2021

HaskellWorks.IO.Network.Socket

Synopsis

Documentation

isPortOpen :: Int -> IO Bool Source #

Check if a TCP port is open

canConnect :: SockAddr -> IO () Source #

Check if it is possible to connect to a socket address

listenOn :: Int -> IO Socket Source #

Open a socket at the specified port for listening

allocateRandomPorts :: Int -> IO [Int] Source #

Allocate the specified number of random ports