Call haskell code from OCaml using FFI

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?

+5
source share

Source: https://habr.com/ru/post/1260359/


All Articles