[Haskell-cafe] example of FFI FunPtr

Galchin, Vasili vigalchin at gmail.com
Thu Jun 5 03:38:26 EDT 2008


Hello,

       I want to model a Haskell function that is a callback from C. I have
only found one example in the unix package's Semaphore.hsc, which apparently
is not used. I want to be able to marshall a Haskell function that is a
first class citizen residing in a Haskell data type and pass to a C function
via FFI. Are there examples of this?

Thanks, Vasili
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080605/e0e8c413/attachment.htm


More information about the Haskell-Cafe mailing list