
Hi, Russell O'Connor pointed out the other day that it is impossible to use the getSocketOption/setSocketOption functions on options which expect or provide a non-Int value. I've concocted another API which allows values to be constructed from a specific disjoint union. This should make it possible to use options like SendTimeOut which expect a struct timeval. The attached darcs patch to the network package has the new functions setSockOpt/getSockOpt and SocketOptionValue. Whether or not those will be the final names, I am not sure. Also, I thought of some better possible interfaces, but on Ian's suggestion I stuck to Haskell'98 capabilities only. I've tested it on Linux/x86-64 and run the validate script. I'm new to GHC development, though, so I'm not sure if I should just go ahead and submit the patch. -- -- Matthew Danish -- user: mrd domain: cmu.edu -- OpenPGP public key: C24B6010 on keyring.debian.org