From 4d48b18086d864af1af003c1b6c98896762d80c0 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Thu, 29 Oct 2015 09:29:32 +0900 Subject: [PATCH 1/2] fixing doc (#183) --- Network/Socket.hsc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Network/Socket.hsc b/Network/Socket.hsc index 934f3632..a0848c14 100644 --- a/Network/Socket.hsc +++ b/Network/Socket.hsc @@ -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 From 767bb09b21996a141a2b981499273dbf58cd48b4 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Tue, 24 Nov 2015 11:22:13 +0900 Subject: [PATCH 2/2] minor doc fix (#183) --- Network/Socket.hsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Network/Socket.hsc b/Network/Socket.hsc index a0848c14..4b0c3350 100644 --- a/Network/Socket.hsc +++ b/Network/Socket.hsc @@ -539,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