[Haskell-cafe] Bug in Network package
thomas.dubuisson at gmail.com
Wed Apr 10 18:56:09 CEST 2013
Replying to all. Sorry for the duplicate, Florian.
The fact that the constructor `PortNum` is exported has been argued to be a
bug in past discussions. PortNumber is stored big endian, which leads to
behaviors that people don't expect. I suggest you lean on the fact that
PortNumber is an instance of the Num class:
> 478 :: PortNumber
On Wed, Apr 10, 2013 at 12: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?
> λ PortNum 1
> λ PortNum 2
> λ PortNum 3
> λ let (PortNum x) = PortNum 10
> λ x
> Tested with network-22.214.171.124
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe