[GHC5] Creating Socket.PortNumber from Int?
Wed, 6 Jun 2001 11:01:04 +0200
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 suppose I'm missing something essential here, as there must be a
better way of doing it when passing a variable of type Int.
Volker Stolz * email@example.com * PGP + S/MIME