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

2001-06-07 Thread Simon Marlow
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

[GHC5] Creating Socket.PortNumber from Int?

2001-06-06 Thread Volker Stolz
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

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

2001-06-06 Thread Volker Stolz
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

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

2001-06-06 Thread Marcin 'Qrczak' Kowalczyk
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