listen/bind socket problem in GHC 5.04

paul@theV.net paul@theV.net
Tue, 20 Aug 2002 17:16:21 +0800


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