(no subject)

2002-12-11 Thread ÖйúÊ×Ò³
___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: ffi

2002-12-11 Thread Malcolm Wallace
Martin Huschenbett <[EMAIL PROTECTED]> writes: > main :: IO () > main = do > -- do something > cfun -- I wan't to call the function written in C here > -- do again something > > And now my question is: How do i realize this? > Can you please tell me how write a binding and how t

ffi

2002-12-11 Thread Martin Huschenbett
Hi all, I've got a simple question concerning FFI but as I am a newbie I don't know the answet. I've got a C-source-file, maybe something like: //cfile.c void cfun() { /* ... do something ... */ } //EOF and a Haskell-source-File, maybe something like: