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

WasmEdge.Tag

Description

Supports the WebAssembly Exception Handling proposal (WasmEdge 0.18+):

  • TagType — describes the signature (parameter types) associated with an exception tag
  • TagInstance — a runtime tag instance retrieved from a module instance
Synopsis

Tag type

newtype TagType #

A WebAssembly tag type describing the parameter types of an exception tag. Tag types are owned by the module / runtime and accessed via borrowed reference.

Instances

Instances details
Eq TagType # 
Instance details

Defined in WasmEdge.Tag

Methods

(==) :: TagType -> TagType -> Bool #

(/=) :: TagType -> TagType -> Bool #

getTagTypeFunctionType :: TagType -> IO FunctionType #

Retrieve the underlying FunctionType describing this tag's payload types.

Tag instance

newtype TagInstance #

A runtime WebAssembly tag instance.

Instances

Instances details
Eq TagInstance # 
Instance details

Defined in WasmEdge.Tag

Internal helpers

borrowTagType :: Ptr TagTypeTag -> IO TagType #

Construct a borrowed TagType from a raw pointer.

borrowTagInstance :: Ptr TagInstanceTag -> IO TagInstance #

Construct a borrowed TagInstance from a raw pointer.

unsafeTagTypePtr :: TagType -> Ptr TagTypeTag #

Extract the raw pointer from a TagType.

unsafeTagInstancePtr :: TagInstance -> Ptr TagInstanceTag #

Extract the raw pointer from a TagInstance.