Antoine Latter <[email protected]> writes:

>>   *Main> PortNum 8888
>>   47138

> The PortNum constructor should rarely be used directly

So, shouldn't the constructor be hidden, and exported from an .Internal
module? 

> - it contains the port number in network-order. You should try:

Or perhaps even better, the type could be:

    data PortNum = PortNum { msb, lsb :: Word8 }

so that we avoid this kind of confusion?

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to