
28 Dec
2008
28 Dec
'08
3:39 a.m.
2008/12/28 Bryan O'Sullivan
2008/12/27 John Van Enk
Currently this only has:
htons htonl ntohs ntohl
This is all subsumed by the binary package (Data.Binary), where it makes a lot more sense in any instance.
That seems like an awfully heavy dependency just to get those simple functions. I would rather define them locally in my program than pull in the binary package. Besides, will GHC be able to optimize away all of the Data.Binary stuff so the functions, if defined in terms of Data.Binary, are as efficient as a direct implementation? Cheers, Johan