You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we support std::function, it is desirable to support casting function parameters from Haskell FFI types to C++ types.
Note that Haskell-C++ type/class correspondence is not 1-1 or 1-N, N-1. it's M-N.
For example,
For Function (Ptr RawA -> Ptr RawB -> IO (Ptr RawC)), the corresponding C++ type can be std::function<(C*)(A*,B*)>, std::function<C(A*,B*)>, std::function<C(A&,B&)> and so on.
The text was updated successfully, but these errors were encountered:
Now that we support
std::function
, it is desirable to support casting function parameters from Haskell FFI types to C++ types.Note that Haskell-C++ type/class correspondence is not 1-1 or 1-N, N-1. it's M-N.
For example,
For
Function (Ptr RawA -> Ptr RawB -> IO (Ptr RawC))
, the corresponding C++ type can bestd::function<(C*)(A*,B*)>
,std::function<C(A*,B*)>
,std::function<C(A&,B&)>
and so on.The text was updated successfully, but these errors were encountered: