[Haskell-cafe] bytestring vs. uvector

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Mar 10 17:52:38 EDT 2009


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)

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list