Import, how to

Henning Thielemann lemming at henning-thielemann.de
Sun Jul 18 18:04:57 EDT 2010


On Sun, 18 Jul 2010, grzyb wrote:

> I'm a beginner at haskell and ffi. I was trying to import and use is haskell
> one C function, but I can't manage to do that.
>
> Can someone show me an example how to create an import and a use example for
> such a C function:
> char functionName(char *, unsigned int, char *)

Something like

foreign import functionName :: Ptr CChar -> CUInt -> Ptr CChar -> IO CChar


More information about the FFI mailing list