Chris Webb writes:
> For simple networking, I usually find that the simple Socket interface
> from hslibs does everything I need, except that I always need 
> to import
> sClose from SocketPrim as well, so I can close the sockets I open.
> Tidying up some old code this morning, I was wondering: is the absence
> of sClose in the Socket interface accidental, or should I be disposing
> of listening sockets some other way?

No, I think you're right.  Socket should really export sClose too.
Perhaps it should be called Socket.close, or closeSocket?

Cheers,
        Simon

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to