
3 Jun
2010
3 Jun
'10
2:05 a.m.
Antoine Latter
*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