[Haskell-cafe] Array Binary IO & molecular simulation

Jason Dusek jason.dusek at gmail.com
Sat May 2 07:16:53 EDT 2009

2009/05/02 Krzysztof Skrzętnicki <gtener at gmail.com>:
> 2009/05/02 Jason Dusek <jason.dusek at gmail.com>:
>> I believe Data.Binary includes a header with the data it
>> serializes. In consequence, the second and all following
>> arrays will be invisible.
> I didn't check the Binary instance for arrays, however I
> belive it's not true. Consider Binary instances for tuples:

  These instances describe serializers for tuples; however,
  there is nothing preventing Data.Binary from tacking on a
  length header or anything else like that when `encode` is
  called. The original poster should try serializing a tuple of
  arrays instead of serializing each array individually.

> If what you are saying would be true, the tuple instances
> would be incorrect for array tuples.

  What is an array tuple?

Jason Dusek

More information about the Haskell-Cafe mailing list