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

HaskellWorks.IO.Network.Port

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