Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
Hi, Is there a tutorial on how to write haskell code that can be called from C++ and vice versa ? With MSVC (not just gcc). Is it easy ?
and is it possible with stack ?
currently I have a .o file, not even a .dll
I found this https://github.com/sanderman01/chaskell however I'm struggling due to too many symbol exported
Adding a .def file to the commande line fixed the issue.
https://luctielen.com/posts/calling_cpp_from_haskell
this might be relevant
Thank you ! Do you know how to handle struct ?
something like hsctohs maybe
inline-c makes this almost easy:
inline-c
getDrawData :: MonadIO m => m DrawData getDrawData = liftIO do DrawData <$> [C.exp| void* { ImGui::GetDrawData() } |]
whoa!
Thank for the info, will try when I have time. inline-c is a tool or a lib ?
The latter
It's a library with some quasiquoters
Hi,
Is there a tutorial on how to write haskell code that can be called from C++ and vice versa ? With MSVC (not just gcc). Is it easy ?
and is it possible with stack ?
currently I have a .o file, not even a .dll
I found this https://github.com/sanderman01/chaskell however I'm struggling due to too many symbol exported
Adding a .def file to the commande line fixed the issue.
https://luctielen.com/posts/calling_cpp_from_haskell
this might be relevant
Thank you ! Do you know how to handle struct ?
something like hsctohs maybe
inline-c
makes this almost easy:whoa!
Thank for the info, will try when I have time.
inline-c
is a tool or a lib ?The latter
It's a library with some quasiquoters