ANN: network-alt 0.3 and hsgnutls 0.2.1

Aaron Denney wnoise at ofb.net
Mon Nov 7 11:23:58 EST 2005


On 2005-11-07, Tomasz Zielonka <tomasz.zielonka at gmail.com> wrote:
> On 11/7/05, Ashley Yakeley <ashley at semantic.org> wrote:
>> > This brings the question on whether they would be native or
>> > big endian -
>>
>> This should be unambiguous. For instance, in the address 127.0.0.1, 127
>> is the high Word8 of the Word32.
>
> I vote for this. Having Haskell values in Network order is awkward,
> especially if you can't treat them as opaque. For example, my
> DNS library would be pure Haskell, if I didn't have to import htonl
> and friends.

You don't have to: just serialize a 32-bit int into octets by shifting
and adding manually.

-- 
Aaron Denney
-><-



More information about the Libraries mailing list