hw-polysemy-0.2.9.0: Opinionated polysemy library
Safe HaskellSafe-Inferred
LanguageHaskell2010

HaskellWorks.IO.Network

Synopsis

Documentation

randomPort :: MonadIO m => MonadFail m => HostAddress -> m PortNumber Source #

Return a random available port on a specified host address

portInUse :: MonadIO m => HostAddress -> PortNumber -> m Bool Source #

Check if a port is in use on a specified host address