Calling haskell code from OCaml using FFI

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 ccall syntax 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?

链接地址: http://www.djcxy.com/p/61186.html

上一篇: 小部件未更新视图

下一篇: 使用FFI从OCaml调用haskell代码