2008/5/1 Galchin, Vasili <[EMAIL PROTECTED]>: > Here is a simpler case of what I want to do .. > > 1) To function1 pass in (Maybe Int). > > 2) If "Nothing" then pass nullPtr to C function. > > 3) If "Just 1", then pass a pointer to a "1" to teh same C function.
Check out Foreign.maybeWith. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe