wasmedge-hs-0.17.1.0: Haskell bindings for the WasmEdge WebAssembly runtime
Copyright(c) 2026 Tushar Adhatrao
LicenseMIT
Stabilitystable
Safe HaskellNone
LanguageGHC2021

WasmEdge.Store

Description

 
Synopsis

Documentation

data Store #

WebAssembly runtime store context for module instances and exported definitions.

createStore :: IO Store #

Create a new runtime Store.

deleteStore :: Store -> IO () #

Delete a runtime Store.

withStore :: (Store -> IO a) -> IO a #

Scoped runtime Store.

findModule :: Store -> Text -> IO (Maybe ModuleInstance) #

Find an exported module by name in the store.

listModules :: Store -> IO [Text] #

List all registered module names in the store.

unsafeStorePtr :: Store -> IO (Ptr StoreTag) #

Extract the raw pointer of a Store.

borrowStore :: Ptr StoreTag -> IO Store #

Create a borrowed Store from a raw pointer (does not finalize).