[Haskell-cafe] bytestring vs. uvector
Xiao-Yong Jin
xj2106 at columbia.edu
Tue Mar 10 21:22:28 EDT 2009
Hi, thanks for the hint. I'll see what I can do with it.
Xiao-Yong
Bulat Ziganshin <bulat.ziganshin at gmail.com> writes:
> Hello Xiao-Yong,
>
> Wednesday, March 11, 2009, 12:28:45 AM, you wrote:
>
>> It goes beyond my current knowledge, now. How do you define
>> a custom data type as an instance of UA or Storable?
>
> just look at existing instances. basically, for complex data type, you
> just use instances for its basic types, plus you need to calculate
> offset of second and following fields (using sizeOf in Storable class)
--
c/* __o/*
<\ * (__
*/\ <
More information about the Haskell-Cafe
mailing list