[Haskell-cafe] elementary Maybe Monad problem .. sigh

Evan Laforge qdunkan at gmail.com
Thu May 1 22:12:06 EDT 2008


2008/5/1 Galchin, Vasili <vigalchin at gmail.com>:
> 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.


More information about the Haskell-Cafe mailing list