I would like to expose a function from a Haskell source library using FFI and use it in OCaml code. I saw various examples using the foreign export ccallsyntax in Haskell which I believe exports the function for usage in C. Is there something similar for OCaml? What would be the best approach to achieve this?
7
votes
ctypeslibrary. - antron