Call C Functions from Haskell at runtime

Viewed 1429

I'm building an interpreter for a dynamic programming language in Haskell. I'd like to add a simple mechanism to call C functions. In the past, I've used the Haskell FFI to call C functions that I had explicitly declared the name and type of; this approach won't work here because the interpreter won't know the name or type of the C functions to be called until runtime.

Is it possible to declare and call C functions at runtime? Where should I begin?

1 Answers
Related