Network, sClose

Bayley, Alistair Alistair_Bayley at
Wed Aug 11 03:51:19 EDT 2004

> -----Original Message-----
> From: Glynn Clements [mailto:glynn.clements at] 
> Sent: 10 August 2004 19:06
> To: Jon Fairbairn
> Cc: glasgow-haskell-users at
> > * Shouldn't sClose be reexported from Network?
> Once you start down that route, you end up at the inevitable 
> conclusion that everything from the raw syscall imports 
> upwards needs to be re-exported.
> > * is there a general way to get ghci out of a state where
> >   it's got stuff open on inaccessible sockets?
> The solution to most problems with the Network module is not 
> to use the Network module, but to use Network.Socket instead.

I had a similar (same?) problem while playing with networking, which was
that you could open a socket and do stuff to it with just the functions from
Network, but to properly close it you had to use Network.Socket.sClose. It
also struck me as odd that Network exported all I needed to use sockets
*except* sClose.


Confidentiality Note: The information contained in this 
message, and any attachments, may contain confidential 
and/or privileged material. It is intended solely for the 
person(s) or entity to which it is addressed. Any review, 
retransmission, dissemination, or taking of any action in 
reliance upon this information by persons or entities other 
than the intended recipient(s) is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.

More information about the Glasgow-haskell-users mailing list