importing c++ data types to haskell with ffi -


I am writing a hascal cover for a C ++ library and as much as I import the function from the library into my haskell program I can not have a clue how to import C ++ data types For example, I have a function that takes the form of a parameter: Video :: E_DRIVER_TYPE EDT_OPENGL type defined in some.h file Has gone, and as I said before, It is importing functions with FFI

Foreign import ccall ...

proper compiler-mangled function name

but I call the function to call hackle Because I did not know how to import / use specific video driver data types

Now, I know that you can make a type in Haskell but still I need a starting point how to define the type of C ++ representation. (I'm confused at this point)

I appreciate any kind of help! Thanks

Calling from Haskell to C ++ is difficult; List some options.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -