[Haskell-cafe] Haskell data types and Storable class

Galchin, Vasili vigalchin at gmail.com
Wed Jun 18 01:12:28 EDT 2008


     I am reading the FFI spec. Something is unclear to me. Let's assume we

         data A = {b:B, .......}


         data B ={ .............}

both of which belong to class Storable. In the A instance of Storable I want
to do a poke and peek of "b" into and out-of, respectively, B. How do I
write the poke and peek function of "b" in the "instance Storable A"?

thank you, Vasili
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080618/e5f1fdd7/attachment.htm

More information about the Haskell-Cafe mailing list