hw-prelude-0.0.1.1: Opinionated prelude 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