I understand that GHC 5.04 has reoganized the network modules,
but somehow my code broke over GHC 5.04...
prepareSocket addr port = do
s - socket AF_INET Stream 6
setSocketOption s ReuseAddr 1
let port' = PortNum port
addr' - case addr of
Just str - inet_addr
Thanks for the help, it works! I wonder why mkPortNumber is
no longer in the socket API?
Regards,
.paul.
On Tue, Aug 20, 2002 at 10:05:40AM +0100, Simon Marlow wrote:
instead of
let port' = PortNum port
use
let port' = fromIntegral port
The PortNumber type should