News for hackers. Stuff that matters.
Re:GHC 7.8.1 released by JoshTriplett on Wednesday April 09, 2014 @07:22PM (#7563204)
If you just need to call variadic functions with a specific parameter list determined at compile time, that's easy with the existing FFI; just write a prototype for the function for any given set of arguments you want to call it with. (For instance, you can have an FFI binding printf_int_float :: CString -> CInt -> CFloat -> IO CInt .)

If you really need to construct calls at runtime and you don't know the argument list at compile time, there's a Haskell binding to libffi. However, you generally only need that if you're writing a language interpreter or similar.

There are no comments on this comment yet.