Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-23 Thread Conrad Parker
On 24 February 2012 01:01, Joey Adams wrote: > On Wed, Feb 22, 2012 at 10:23 PM, Johan Tibell wrote: >> But the network package doesn't try to let you work with raw file >> descriptors elsewhere (e.g. send and recv.) I'm not saying that >> functions on Fds aren't useful, they are, just that the n

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-23 Thread Joey Adams
On Wed, Feb 22, 2012 at 10:23 PM, Johan Tibell wrote: > But the network package doesn't try to let you work with raw file > descriptors elsewhere (e.g. send and recv.) I'm not saying that > functions on Fds aren't useful, they are, just that the network > package is the wrong place for them. I'd p

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-22 Thread Johan Tibell
Hi, On Wed, Feb 22, 2012 at 10:43 AM, Joey Adams wrote: > I know it's a bit ugly, but not having it makes it hard to work with > unmanaged sockets (e.g. those buried under Handles).  If the functions > take a managed Socket, you'd have to say something like: > >    setRecvTimeout (MkSocket fd und

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-22 Thread Joey Adams
Thanks for the review! On Wed, Feb 22, 2012 at 11:15 AM, Johan Tibell wrote: > The API looks fine except: > > HasSocket - I don't think we want to abstract over sockets here, as we > don't do so in the rest of the module. I know it's a bit ugly, but not having it makes it hard to work with unman

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-22 Thread Joey Adams
On Wed, Feb 22, 2012 at 5:56 AM, L Corbijn wrote: > On Wed, Feb 22, 2012 at 5:58 AM, Joey Adams > wrote: >> I released network-socket-options 0.2, adding setSocketTimeouts and >> setHandleTimeouts.  I'll post an announcement in a separate thread >> once the Haddock documentation is generated. >>

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-22 Thread Johan Tibell
Hi Conrad and Joey, On Tue, Feb 21, 2012 at 4:36 PM, Conrad Parker wrote: > awesome! I've prepared some patches for network to add this module and > its tests, in this branch: > > https://github.com/kfish/network/tree/options > > I didn't modify any other modules, perhaps Network.Socket.Options >

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-21 Thread Joey Adams
I released network-socket-options 0.2, adding setSocketTimeouts and setHandleTimeouts. I'll post an announcement in a separate thread once the Haddock documentation is generated. -Joey ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.h

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-21 Thread Joey Adams
On Tue, Feb 21, 2012 at 7:36 PM, Conrad Parker wrote: > awesome! I've prepared some patches for network to add this module and > its tests, in this branch: > > https://github.com/kfish/network/tree/options Cool, thanks! > I didn't modify any other modules, perhaps Network.Socket.Options > should

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-21 Thread Conrad Parker
On 21 February 2012 14:57, Joey Adams wrote: > I added a new package containing wrappers for getsockopt and setsockopt: > >    http://hackage.haskell.org/package/network-socket-options > > The network package already has getSocketOption and setSocketOption. > The problem is, these don't work for s

[Haskell-cafe] ANN: network-socket-options 0.1

2012-02-20 Thread Joey Adams
I added a new package containing wrappers for getsockopt and setsockopt: http://hackage.haskell.org/package/network-socket-options The network package already has getSocketOption and setSocketOption. The problem is, these don't work for socket options that aren't represented by integers, such