Safe Haskell | None |
---|---|
Language | Haskell2010 |
Binaryen.Module
Description
Modules.
See https://github.com/WebAssembly/binaryen/blob/master/src/binaryen-c.h for API documentation.
This module is intended to be imported qualified.
Documentation
Instances
Eq Module Source # | |
Show Module Source # | |
Storable Module Source # | |
addFunction :: Module -> Ptr CChar -> Type -> Type -> Ptr Type -> Index -> Expression -> IO Function Source #
addFunctionImport :: Module -> Ptr CChar -> Ptr CChar -> Ptr CChar -> Type -> Type -> IO () Source #
addEventImport :: Module -> Ptr CChar -> Ptr CChar -> Ptr CChar -> Word32 -> Type -> Type -> IO () Source #
setFunctionTable :: Module -> Index -> Index -> Ptr (Ptr CChar) -> Index -> Expression -> IO () Source #
getFunctionTableSegmentOffset :: Module -> Index -> IO Expression Source #
setMemory :: Module -> Index -> Index -> Ptr CChar -> Ptr (Ptr CChar) -> Ptr Int8 -> Ptr Expression -> Ptr Index -> Index -> Word8 -> IO () Source #
printAsmjs :: Module -> IO () Source #