2009/1/1 Galchin, Vasili <[email protected]>:
>
>     Say I have several data structures that are marshalled(using Binary
> class) and written out linearly on persistence store. I want to calculate
> the offsets in bytes of these various data structures in a functional
> language way. What is the "suggested" (elegant) way .... ?
>

It doesn't look like the 'Put' monad in te binary package keeps track
of position in the output stream.

Is there a bigger-picture goal you're trying to achieve?  Maybe we
could suggest a better approach by stepping back a bit.

-Antoine
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to