fficxx-runtime-0.6: Runtime for fficxx-generated library
Safe HaskellNone
LanguageHaskell2010

FFICXX.Runtime.TH

Synopsis

Documentation

data IsCPrimitive Source #

Primitive C type like int, double should be treated differently than Non-primitive type. The primitive type detection is not yet automatic. So we manually mark template instantiation with this boolean parameter.

Constructors

CPrim 
NonCPrim 

Instances

Instances details
Show IsCPrimitive Source # 
Instance details

Defined in FFICXX.Runtime.TH

data TemplateParamInfo Source #

template parameter: A,B,.. in TA,B..

Instances

Instances details
Show TemplateParamInfo Source # 
Instance details

Defined in FFICXX.Runtime.TH

data FunctionParamInfo Source #

function pointer parameter A(B,C,..) in std::functionA(B,C,..)

Instances

Instances details
Show FunctionParamInfo Source # 
Instance details

Defined in FFICXX.Runtime.TH

mkInstance :: Cxt -> Type -> [Dec] -> Dec Source #

 

mkTFunc :: (types, String, String -> String, types -> Q Type) -> Q Exp Source #

 

mkMember :: String -> (types -> String -> Q Exp) -> types -> String -> Q Dec Source #

 

mkNew :: String -> (types -> String -> Q Exp) -> types -> String -> Q Dec Source #

 

mkDelete :: String -> (types -> String -> Q Exp) -> types -> String -> Q Dec Source #

 

dot2_ :: String -> String Source #

utility function for converting . to '_'