transceiverF :: Socket -> F String String receiverF :: Socket -> F a String transmitterF :: Socket -> F String a
receiverFreads from a socket,
transmitterFwrites to a socket and
transceiverFis a combination of the former two.
The input and output are streams of strings rather than streams of characters
for efficiency reasons. The strings obtained from
arbitrary chunks of characters that have no relation to how the characters
were grouped by the sender.
socket :: Socket
openSocketF "news" 119 transceiverF
Creating sockets: openSocketF, openFileAsSocketF.