fficxx-0.5.1: automatic C++ binding generation

Safe HaskellNone
LanguageHaskell98

FFICXX.Generate.Code.Primitive

Synopsis

Documentation

data CFunSig Source #

Constructors

CFunSig 

Fields

data HsFunSig Source #

Constructors

HsFunSig 

Fields

tmplArgToCallString Source #

Arguments

:: Bool

is primitive type?

-> (Types, String) 
-> String 

tmplAllArgsToCallString Source #

Arguments

:: Bool

is primitive type?

-> Args 
-> String 

tmplRetTypeToString Source #

Arguments

:: Bool

is primitive type?

-> Types 
-> String 

convertCpp2HS4Tmpl Source #

Arguments

:: Type ()

self

-> Maybe Class 
-> Type ()

type paramemter splice

-> Types 
-> Type () 
 

extractArgRetTypes Source #

Arguments

:: Maybe Class

class (Nothing for top-level function)

-> Bool

is virtual function?

-> CFunSig

C type signature information for a given function -- (Args,Types) -- ^ (argument types, return type) of a given function

-> HsFunSig

Haskell type signature information for the function -- ([Type ()],[Asst ()]) -- ^ (types, class constraints)

hsFFIFuncTyp :: Maybe (Selfness, Class) -> CFunSig -> Type () Source #

this is for FFI type.