Hi, thanks for the hint.  I'll see what I can do with it.

Xiao-Yong

Bulat Ziganshin <bulat.zigans...@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/*
    <\     * (__
    */\      <
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to