RE: [GHC5] Creating Socket.PortNumber from Int?
7 Jun
2001
7 Jun
'01
5:07 p.m.
Wed, 6 Jun 2001 10:17:34 +0100, Simon Marlow <simonmar@microsoft.com> 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
9174
Age (days ago)
9174
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow