[Haskell-cafe] Serializing with alignment

Vincent Hanquez tab at snarc.org
Tue Nov 6 23:49:51 CET 2012


On 11/06/2012 09:33 PM, Ben Franksen wrote:
> Hi Everyone
>
> I want to implement a binary protocol that, unfortunately, has some
> alignment restrictions.
> [snip]
>
> Cheers
Hi Ben,

I don't think such thing currently exists.

Not sure that's any help to you (and definitely not answering your 
binary question), but I rolled my own 'put' for a dbus implementation:
https://github.com/vincenthz/hs-udbus/blob/master/Network/DBus/Wire.hs

(it's quite simple, and could do with a builder and some tweaks)

-- 
Vincent @vincenthz



More information about the Haskell-Cafe mailing list