[Haskell-cafe] Re: Sockets get bound to wrong port on Windows

Matthias Reisner matthias.reisner at googlemail.com
Thu Jun 3 13:52:19 EDT 2010


Am 03.06.2010 07:34 schrieb Bardur Arantsson:
> On 2010-06-03 05:10, Matthias Reisner wrote:
>> Hi,
>>
>> there's something wrong with port numbers in the Network.Socket module
>> of package network. Printing values gives:
>>
>> *Main> PortNum 8888
>> 47138
>> *Main> PortNum 47138
>> 8888
>>
>
> Try
>
>    (fromIntegral 8888) :: PortNumber
>
> (Yes, it's weird.)
>
> Cheers,
>
> Bardur
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

Hi Bardur,

indeed, this is weird. Thanks for the hint!


Regards,

Matthias


More information about the Haskell-Cafe mailing list