Skip to content

Commit

Permalink
Merge branch 'fix-doc'
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Nov 24, 2015
2 parents 00b7ef5 + 767bb09 commit 916f83e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Network/Socket.hsc
Expand Up @@ -93,19 +93,21 @@ module Network.Socket
, socketToHandle

-- ** Sending and receiving data
-- *** Sending and receiving with String
-- $sendrecv
, sendTo
, sendBufTo

, recvFrom
, recvBufFrom

, send
, sendTo
, recv
, recvFrom
, recvLen

-- *** Sending and receiving with a buffer
, sendBuf
, recvBuf
, sendBufTo
, recvBufFrom

-- ** Misc
, inet_addr
, inet_ntoa

Expand Down Expand Up @@ -537,11 +539,11 @@ foreign import ccall unsafe "free"

-- $sendrecv
--
-- Do not use the @send@ and @recv@ functions defined in this module
-- Do not use the @send@ and @recv@ functions defined in this section
-- in new code, as they incorrectly represent binary data as a Unicode
-- string. As a result, these functions are inefficient and may lead
-- to bugs in the program. Instead use the @send@ and @recv@
-- functions defined in the 'Network.Socket.ByteString' module.
-- functions defined in the "Network.Socket.ByteString" module.

-----------------------------------------------------------------------------
-- sendTo & recvFrom
Expand Down

0 comments on commit 916f83e

Please sign in to comment.