Foreign.HacanonLight.FFIToHs
- processFFIDecl :: String -> FFIDecl -> HsDecl
- applyArgs :: ExpQ -> [ExpQ] -> ExpQ
- bindArgs :: [DIS] -> ([(DIS, Name)] -> ExpQ) -> ExpQ
- marshalArgs :: ([(DIS, Name)] -> ExpQ) -> [(DIS, Name)] -> ExpQ
- callFunc :: ([(DIS, Name)] -> ExpQ) -> Name -> DIS -> [(DIS, Name)] -> ExpQ
- unmarshalArgs :: [(DIS, Name)] -> ExpQ
- createHsBody :: Name -> [DIS] -> DIS -> ExpQ
Documentation
haskellName cFunc [arg1, arg2]) $(bindOps haskellName cFunc [arg1, arg2] $ do setPure True setCallConv CCall) $(simpleBind haskellAndCName [arg1, arg2]) $(simpleBindOps ...)
processFFIDecl :: String -> FFIDecl -> HsDeclSource
unmarshalArgs :: [(DIS, Name)] -> ExpQSource