Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ModuleInstance Source #
ModuleInstance | |
|
Instances
Eq ModuleInstance Source # | |
Defined in Language.Wasm.Interpreter (==) :: ModuleInstance -> ModuleInstance -> Bool # (/=) :: ModuleInstance -> ModuleInstance -> Bool # | |
Show ModuleInstance Source # | |
Defined in Language.Wasm.Interpreter showsPrec :: Int -> ModuleInstance -> ShowS # show :: ModuleInstance -> String # showList :: [ModuleInstance] -> ShowS # |
data ExternalValue Source #
ExternFunction Address | |
ExternTable Address | |
ExternMemory Address | |
ExternGlobal Address |
Instances
Eq ExternalValue Source # | |
Defined in Language.Wasm.Interpreter (==) :: ExternalValue -> ExternalValue -> Bool # (/=) :: ExternalValue -> ExternalValue -> Bool # | |
Show ExternalValue Source # | |
Defined in Language.Wasm.Interpreter showsPrec :: Int -> ExternalValue -> ShowS # show :: ExternalValue -> String # showList :: [ExternalValue] -> ShowS # |
data ExportInstance Source #
Instances
Eq ExportInstance Source # | |
Defined in Language.Wasm.Interpreter (==) :: ExportInstance -> ExportInstance -> Bool # (/=) :: ExportInstance -> ExportInstance -> Bool # | |
Show ExportInstance Source # | |
Defined in Language.Wasm.Interpreter showsPrec :: Int -> ExportInstance -> ShowS # show :: ExportInstance -> String # showList :: [ExportInstance] -> ShowS # |
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 #