RE: [GHC5] Creating Socket.PortNumber from Int?

7 Jun
2001
7 Jun
'01
5:07 a.m.
Wed, 6 Jun 2001 10:17:34 +0100, Simon Marlow
pisze: Think of it this way: mkPortNumber has been renamed to fromIntegral, and now supports making port numbers from any integral type, not just Int.
BTW, why PortNumber is not just Int?
It's kept in network byte order. We could make it an Int and do the translation to/from network byte order whenever we need to pass one outside Haskell - I didn't investigate doing it this way, it may or may not be simpler. Cheers, Simon
8749
Age (days ago)
8749
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow