| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Wasm.Interpreter
Documentation
data ModuleInstance Source #
Constructors
| ModuleInstance | |
Fields
| |
Instances
data ExternalValue Source #
Constructors
| ExternFunction Address | |
| ExternTable Address | |
| ExternMemory Address | |
| ExternGlobal Address |
Instances
Constructors
| 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 #