hacanon-light-2008.10.28: Template Haskell framework for automatic FFI code generation.

Foreign.HacanonLight.FFIToHs

Synopsis

Documentation

haskellName cFunc [arg1, arg2]) $(bindOps haskellName cFunc [arg1, arg2] $ do setPure True setCallConv CCall) $(simpleBind haskellAndCName [arg1, arg2]) $(simpleBindOps ...)

bindArgs :: [DIS] -> ([(DIS, Name)] -> ExpQ) -> ExpQSource

marshalArgs :: ([(DIS, Name)] -> ExpQ) -> [(DIS, Name)] -> ExpQSource

callFunc :: ([(DIS, Name)] -> ExpQ) -> Name -> DIS -> [(DIS, Name)] -> ExpQSource