fficxx-runtime-0.5: Runtime for fficxx-generated library

Safe HaskellSafe
LanguageHaskell98

FFICXX.Runtime.Function.Template

Contents

Documentation

data RawFunction t Source #

Instances
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
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 #

Minimal complete definition

newFunction, call, deleteFunction

class FunPtrWrapper t where Source #

Minimal complete definition

wrapFunPtr

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 #