Proposal: ByteString based datagram communication (Ticket #1238 )

Robert Marlow rob at
Thu Apr 5 11:26:44 EDT 2007

Hi Bulat

On Thu, 2007-04-05 at 15:08 +0400, Bulat Ziganshin wrote:
> but why you provide ByteString-only API?? i think that more common
> idiom is to provide String functions here and use somewhat like
> Network.ByteString, Network.ByteString.Lazy modules to provide
> ByteString/ByteStringLazy equivalents of String function from
> Network.hs

Mostly because I wanted ByteStrings so that's what I implemented :)

Good point though. I've uploaded a replacement patch changing the
Network functions to use String and adding Network.ByteString and
Network.ByteString.Lazy. Thanks for the suggestion.

Ideally it'd be nice if this all used some sort of String typeclass
interface. But this should do for now.

Robert Marlow
MITS Co-operative Limited

More information about the Libraries mailing list