Skip to content

Commit 33d8a48

Browse files
committed
Remove withSocketsDo from examples
1 parent 74c8e51 commit 33d8a48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Network/Socket.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
-- >
4949
-- > -- from the "network-run" package.
5050
-- > runTCPServer :: Maybe HostName -> ServiceName -> (Socket -> IO a) -> IO a
51-
-- > runTCPServer mhost port server = withSocketsDo $ do
51+
-- > runTCPServer mhost port server = do
5252
-- > addr <- resolve
5353
-- > E.bracket (open addr) close loop
5454
-- > where
@@ -91,7 +91,7 @@
9191
-- >
9292
-- > -- from the "network-run" package.
9393
-- > runTCPClient :: HostName -> ServiceName -> (Socket -> IO a) -> IO a
94-
-- > runTCPClient host port client = withSocketsDo $ do
94+
-- > runTCPClient host port client = do
9595
-- > addr <- resolve
9696
-- > E.bracket (open addr) close client
9797
-- > where

0 commit comments

Comments
 (0)