ghc-7.8.2: The GHC API

Safe Haskell | None
Language | Haskell98

DsForeign

# Documentation

dsForeigns :: [LForeignDecl Id] -> DsM (ForeignStubs, OrdList Binding)

dsForeigns' :: [LForeignDecl Id] -> DsM (ForeignStubs, OrdList Binding)

dsFImport :: Id -> Coercion -> ForeignImport -> DsM ([Binding], SDoc, SDoc)

dsCImport :: Id -> Coercion -> CImportSpec -> CCallConv -> Safety -> Maybe Header -> DsM ([Binding], SDoc, SDoc)

dsFCall :: Id -> Coercion -> ForeignCall -> Maybe Header -> DsM ([(Id, Expr TyVar)], SDoc, SDoc)

dsPrimCall :: Id -> Coercion -> ForeignCall -> DsM ([(Id, Expr TyVar)], SDoc, SDoc)

dsFExport :: Id -> Coercion -> CLabelString -> CCallConv -> Bool -> DsM (SDoc, SDoc, String, Int)

dsFExportDynamic :: Id -> Coercion -> CCallConv -> DsM ([Binding], SDoc, SDoc)

mkFExportCBits :: DynFlags -> FastString -> Maybe Id -> [Type] -> Type -> Bool -> CCallConv -> (SDoc, SDoc, String, Int)

toCType :: Type -> (Maybe Header, SDoc)

foreignExportInitialiser :: Id -> SDoc