Safe Haskell | None |
---|
Generic components
- loadFunWithConfig :: Config -> [Name] -> Q [Dec]
- loadFunType :: Name -> Q Type
- data Config = Config {}
- defaultConfig :: Config
- data CallConv = CallConv {}
- buildType :: CallConv -> Type -> Q Type
- applyTF :: Name -> Type -> Q Type
- expandTF :: Type -> Q Type
- pack :: (Reference (Rep a), Marshal a) => a -> IO (Ref (Rep a))
- unpack :: (Reference (Rep a), Marshal a) => Ref (Rep a) -> IO a
- class Reference a where
- class Marshal a where
Loading
loadFunType :: Name -> Q TypeSource
Extract the type of the supplied function name
Configuration
Configuration parameters for the function loader
Calling Convention
The Calling Convention specifies how a type should be converted
Marshaling
pack :: (Reference (Rep a), Marshal a) => a -> IO (Ref (Rep a))Source
Pack a value into its runtime representation
pack a = to a >>= ref
unpack :: (Reference (Rep a), Marshal a) => Ref (Rep a) -> IO aSource
Unpack a value from its runtime representation
unpack a = deref a >>= from
Optionally make a refrence of a value
Convert to a referenced value
Convert from a referenced value
In the IO monad to allow peek
ing through the reference.
Convert between Haskell and representation types