libffi-dynamic-0.0.0.2: LibFFI interface with dynamic bidirectional type-driven binding generation

Safe HaskellNone
LanguageHaskell98

Foreign.Wrapper

Documentation

data Wrap a b Source #

mkWrap :: OutRet a b -> Wrap (IO b) (IO a) Source #

consWrap :: InArg a b -> Wrap c d -> Wrap (b -> c) (a -> d) infixr 5 Source #

exportWrap :: SigType b => Wrap a b -> a -> IO (FunPtr b) Source #

exportWrapWithABI :: SigType b => ABI -> Wrap a b -> a -> IO (FunPtr b) Source #

exportWrapWithCIF :: CIF b -> Wrap a b -> a -> IO (FunPtr b) Source #

class SigType a => Wrapper a Source #

Minimal complete definition

stdWrap

Instances
RetType a => Wrapper (IO a) Source # 
Instance details

Defined in Foreign.Wrapper

Methods

stdWrap :: Wrap (IO a) (IO a)

(ArgType a, Wrapper b) => Wrapper (a -> b) Source # 
Instance details

Defined in Foreign.Wrapper

Methods

stdWrap :: Wrap (a -> b) (a -> b)

wrap :: Wrapper a => Wrap a a Source #

wrapper :: Wrapper a => a -> IO (FunPtr a) Source #