I would like to open a function from the Haskell source library using FFI and use it in OCaml code. I saw various examples using the foreign export ccall in Haskell, which I believe exports a function for use in C. Is there something similar for OCaml? What would be the best approach to achieve this?
Kapil source share