haskell-ricochet icon indicating copy to clipboard operation
haskell-ricochet copied to clipboard

Create C-bindings

Open froozen opened this issue 10 years ago • 5 comments

When we started out, we decided we wanted to have working C-bindings as well. We should put them in another repository, once we get to it. This issue serves only as a reminder of that fact.

froozen avatar Oct 20 '15 13:10 froozen

Which library should be used for that task?

sternenseemann avatar Oct 20 '15 13:10 sternenseemann

Are there even multiple libraries to choose from? I thought we’d need to use the GHC language extension ForeignFunctionInterface.

photm5 avatar Oct 21 '15 16:10 photm5

The FFI is for the call from Haskell to C I think.

sternenseemann avatar Oct 21 '15 17:10 sternenseemann

https://wiki.haskell.org/Calling_Haskell_from_C

photm5 avatar Oct 21 '15 18:10 photm5

Very nice!

sternenseemann avatar Oct 21 '15 18:10 sternenseemann