@@ -216,7 +216,7 @@ connectionsOnLocalHost = connectionsOnAddr (127,0,0,1)
217-- | Connect to the specified IP address and port number.
217-- | Connect to the specified IP address and port number.
219−-- /Internal/
219+-- @since 0.7.0
220connect :: (Word8, Word8, Word8, Word8) -> PortNumber -> IO Socket
220connect :: (Word8, Word8, Word8, Word8) -> PortNumber -> IO Socket
221connect addr port = do
221connect addr port = do
222 sock <- socket AF_INET Stream defaultProtocol
222 sock <- socket AF_INET Stream defaultProtocol
@@ -229,7 +229,7 @@ connect addr port = do
229-- closing the socket raises an exception, then this exception will be raised
229-- closing the socket raises an exception, then this exception will be raised
230-- by 'withServerAddrM'.
230-- by 'withServerAddrM'.
232−-- @since 0.7.0
232+-- /Internal/
233{-# INLINABLE withServerAddrM #-}
233{-# INLINABLE withServerAddrM #-}
234withServerAddrM :: (MonadMask m, MonadIO m)
234withServerAddrM :: (MonadMask m, MonadIO m)
235 => (Word8, Word8, Word8, Word8) -> PortNumber -> (Socket -> m ()) -> m ()
235 => (Word8, Word8, Word8, Word8) -> PortNumber -> (Socket -> m ()) -> m ()
@@ -246,7 +246,7 @@ withServerAddrM addr port =
246-- termination or in case of an exception. If closing the socket raises an
246-- termination or in case of an exception. If closing the socket raises an
247-- exception, then this exception will be raised by 'withServerAddr'.
247-- exception, then this exception will be raised by 'withServerAddr'.
249−-- @since 0.7.0
249+-- /Internal/
250{-# INLINABLE withServerAddr #-}
250{-# INLINABLE withServerAddr #-}
251withServerAddr :: (MonadCatch m, MonadIO m)
251withServerAddr :: (MonadCatch m, MonadIO m)
252 => Unfold m Socket a
252 => Unfold m Socket a
@@ -266,7 +266,7 @@ withServerAddr =
266-- handle raises an exception, then this exception will be raised by
266-- handle raises an exception, then this exception will be raised by
267-- 'withConnection' rather than any exception raised by 'act'.
267-- 'withConnection' rather than any exception raised by 'act'.
269−-- @since 0.7.0
269+-- /Internal/
270{-# INLINABLE withConnection #-}
270{-# INLINABLE withConnection #-}
271withConnection :: (IsStream t, MonadCatch m, MonadIO m)
271withConnection :: (IsStream t, MonadCatch m, MonadIO m)
272 => (Word8, Word8, Word8, Word8) -> PortNumber -> (Socket -> t m a) -> t m a
272 => (Word8, Word8, Word8, Word8) -> PortNumber -> (Socket -> t m a) -> t m a