20 Aug
2002
20 Aug
'02
9:16 a.m.
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 really be abstract. Internally, it is stored in network byte order, but you bypassed the conversion to network byte order by constructing a value of type PortNumber directly.
Cheers, Simon _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell