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 > [EMAIL PROTECTED] > http://www.haskell.org/mailman/listinfo/haskell _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell