Skip to content

Commit df11dab

Browse files
committed
fixing doc
1 parent 78696e9 commit df11dab

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Network/Socket/Options.hsc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,7 @@ whenSupported s action
353353
| isSupportedSocketOption s = action >> return ()
354354
| otherwise = return ()
355355

356-
-- | Set a socket option that expects an Int value.
357-
-- There is currently no API to set e.g. the timeval socket options
356+
-- | Set a socket option that expects an 'Int' value.
358357
setSocketOption :: Socket
359358
-> SocketOption -- Option Name
360359
-> Int -- Option Value
@@ -379,8 +378,7 @@ setSockOpt s (SockOpt level opt) v = do
379378
throwSocketErrorIfMinus1_ "Network.Socket.setSockOpt" $
380379
c_setsockopt fd level opt ptr sz
381380

382-
-- | Get a socket option that gives an Int value.
383-
-- There is currently no API to get e.g. the timeval socket options
381+
-- | Get a socket option that gives an 'Int' value.
384382
getSocketOption :: Socket
385383
-> SocketOption -- Option Name
386384
-> IO Int -- Option Value
@@ -396,8 +394,8 @@ getSocketOption s so = do
396394
-- | Get a socket option.
397395
getSockOpt :: forall a . Storable a
398396
=> Socket
399-
-> SocketOption -- Option Name
400-
-> IO a -- Option Value
397+
-> SocketOption -- Option Name
398+
-> IO a -- Option Value
401399
getSockOpt s (SockOpt level opt) = do
402400
alloca $ \ptr -> do
403401
let sz = fromIntegral $ sizeOf (undefined :: a)

0 commit comments

Comments
 (0)