[Haskell-cafe] Missing Network Functions

Johan Tibell johan.tibell at gmail.com
Sun Dec 28 03:39:04 EST 2008

2008/12/28 Bryan O'Sullivan <bos at serpentine.com>:
> 2008/12/27 John Van Enk <vanenkj at gmail.com>
>> 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?



More information about the Haskell-Cafe mailing list