Wed, 6 Jun 2001 10:17:34 +0100, Simon Marlow
[EMAIL PROTECTED] 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
Until 5.00 I could use mkPortNumber to get what I want, i.e.
PortNumber (mkPortNumber port)
Now in 5.01, this function now longer exists.
(PortNumber 5) works, but (PortNumber (5::Int)) does not, so I
have to use fromIntegral to get it to work again:
PortNumber (fromIntegral (5::Int))
I
In local.glasgow-haskell-users, you wrote:
Think of it this way: mkPortNumber has been renamed to fromIntegral, and
now supports making port numbers from any integral type, not just Int.
I didin't see the need for a special purpose convesion from Int, when
fromIntegral does the job in a much more
Wed, 6 Jun 2001 10:17:34 +0100, Simon Marlow [EMAIL PROTECTED] 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?
--
__( Marcin Kowalczyk * [EMAIL