Socket Options

Peter Simons simons at cryp.to
Mon Jun 28 08:26:12 EDT 2004


Martin Sjögren writes:

 > Wouldn't that make
 >   getSocketOption :: Socket -> SocketOption -> IO Int
 > a bit strange? How would you propose to change it?

Right, that is a problem. My first idea how to fix this
would be

  getSocketOption :: Socket -> SocketOption -> IO SocketOption

as in:

  Debug v <- getSocketOption sock (Debug undefined)

But that's the first idea, not necessarily the best.

Peter



More information about the Glasgow-haskell-users mailing list