Patch with new API for get/setsockopt

Bryan O'Sullivan bos at
Sun Sep 9 10:59:28 EDT 2007

Matthew Danish wrote:

> I thought of this, but didn't go this way because I did not want to
> change the existing SocketOption type.


> There's also some argument
> that providing such a type is higher-level than the Network.Socket
> library, since everything else is pretty much as unforgiving as C.

There's already extensive use of ADTs where C's socket interface accepts 
ints and pointers to untyped structs (e.g. struct sockaddr).


More information about the Libraries mailing list