[Haskell-cafe] Bug in Network package
Florian Hofmann
fhofmann at techfak.uni-bielefeld.de
Wed Apr 10 22:31:18 CEST 2013
Ah ok ... thanks for the clarification
2013/4/10 Brandon Allbery <allbery.b at gmail.com>
> On Wed, Apr 10, 2013 at 3:26 AM, Florian Hofmann <
> fhofmann at techfak.uni-bielefeld.de> wrote:
>
>> I might be mistaken, but is there a bug in the Show instance of PortNum?
>>
>
> Not a bug, an annoying misdesign (IMO). A PortNum is actually in network
> byte order. If you extract it, you get the original port; if you simply
> show it, you see it byteswapped on little-endian platforms.
>
> --
> brandon s allbery kf8nh sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130410/86bb5202/attachment.htm>
More information about the Haskell-Cafe
mailing list