fficxx-runtime-0.7.0.0: Runtime for fficxx-generated library
Safe HaskellSafe-Inferred
LanguageHaskell2010

FFICXX.Runtime.Function.Template

Documentation

data RawFunction t Source #

Instances

Instances details
Castable (Function t) (Ptr (RawFunction t)) Source # 
Instance details

Defined in FFICXX.Runtime.Function.Template

Methods

cast :: Function t -> (Ptr (RawFunction t) -> IO r) -> IO r Source #

uncast :: Ptr (RawFunction t) -> (Function t -> IO r) -> IO r Source #

newtype Function t Source #

Constructors

Function (Ptr (RawFunction t)) 

Instances

Instances details
FPtr (Function t) Source # 
Instance details

Defined in FFICXX.Runtime.Function.Template

Associated Types

type Raw (Function t) Source #

Castable (Function t) (Ptr (RawFunction t)) Source # 
Instance details

Defined in FFICXX.Runtime.Function.Template

Methods

cast :: Function t -> (Ptr (RawFunction t) -> IO r) -> IO r Source #

uncast :: Ptr (RawFunction t) -> (Function t -> IO r) -> IO r Source #

type Raw (Function t) Source # 
Instance details

Defined in FFICXX.Runtime.Function.Template

type Raw (Function t) = RawFunction t

class IFunction t where Source #

class FunPtrWrapper t where Source #

Methods

wrapFunPtr :: t -> IO (FunPtr t) Source #

Orphan instances

Castable (FunPtr t) (FunPtr t) Source # 
Instance details

Methods

cast :: FunPtr t -> (FunPtr t -> IO r) -> IO r Source #

uncast :: FunPtr t -> (FunPtr t -> IO r) -> IO r Source #