[Haskell-cafe] Binary serialization, was Re: Abstraction leak

Stefan O'Rear stefanor at cox.net
Wed Jul 4 13:25:37 EDT 2007


On Wed, Jul 04, 2007 at 02:50:42PM +0100, Philip Armstrong wrote:
>> The Data.Binary comes with one tool to derive these. The DrIFT 
>> preprocessor
>> also can, as can Stefan O'Rear's SYB deriver.
>>
>> I just write them by hand, or use the tool that comes with the lib.
>>
>> More docs here,
>>    
>> http://hackage.haskell.org/packages/archive/binary/0.3/doc/html/Data-Binary.html
>
> This doesn't seem to deal with endianness. Am I missing something?

The Data.Binary high level interface standardizes on 64-bit big endian.
The low level interface allows you to choose it yourself.

Stefan


More information about the Haskell-Cafe mailing list