On Thu, Mar 12, 2009 at 8:45 PM, Antoine Latter <aslatter@gmail.com> wrote:
So the Ord instance is wrong for the PortNumber type?  Well, maybe not
wrong.

It's out and out wrong. You get different results on machines of different endianness. Now, this begs the question of why not just simply use an unwrapped Word16 instead :-)