c - c2hs bind both typedef and function -


i trying create haskell bindings function in c, split in 2 files.

file1.h: typedef const char* fmi2gettypesplatformtype(void);

file2.h: __declspec(dllexport) fmi2gettypesplatformtype fmi2gettypesplatform;

to match in haskell have created similar structure, trouble is.

file1.chs: type fmi2gettypesplatformtype = {#type fmi2gettypesplatformtype#}

how create haskell function pointer using type? have imported file {#import file1 #}, lost on how accomplish last part.

see https://github.com/haskell/c2hs/issues/142 post answer once resolved (unless ian-ross beats me :) )


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -