Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ModuleInstance Source #
ModuleInstance | |
|
data ExternalValue Source #
ExternFunction Address | |
ExternTable Address | |
ExternMemory Address | |
ExternGlobal Address |
data ExportInstance Source #
HostFunction FuncType HostFunction | |
HostGlobal GlobalInstance | |
HostMemory Limit | |
HostTable Limit |
instantiate :: Store -> Imports -> ValidModule -> IO (Either String (ModuleInstance, Store)) Source #
invokeExport :: Store -> ModuleInstance -> Text -> [Value] -> IO (Maybe [Value]) Source #
getGlobalValueByName :: Store -> ModuleInstance -> Text -> IO Value Source #
emptyStore :: Store Source #
makeHostModule :: Store -> [(Text, HostItem)] -> IO (Store, ModuleInstance) Source #
makeMutGlobal :: Value -> IO GlobalInstance Source #