Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Module
- data ValidModule
- data ValidationError
- = DuplicatedExportNames [String]
- | InvalidTableType
- | MinMoreThanMaxInMemoryLimit
- | MemoryLimitExceeded
- | AlignmentOverflow
- | MoreThanOneMemory
- | MoreThanOneTable
- | FunctionIndexOutOfRange
- | TableIndexOutOfRange
- | MemoryIndexOutOfRange
- | LocalIndexOutOfRange
- | GlobalIndexOutOfRange
- | LabelIndexOutOfRange
- | TypeIndexOutOfRange
- | ResultTypeDoesntMatch
- | TypeMismatch { }
- | InvalidResultArity
- | InvalidConstantExpr
- | InvalidStartFunctionType
- | ImportedGlobalIsNotConst
- | ExportedGlobalIsNotConst
- | GlobalIsImmutable
- parse :: ByteString -> Either String Module
- validate :: Module -> Either ValidationError ValidModule
- parseScript :: ByteString -> Either String Script
- encode :: Module -> ByteString
- encodeLazy :: Module -> ByteString
- decode :: ByteString -> Either String Module
- decodeLazy :: ByteString -> Either String Module
- type Script = [Command]
- runScript :: OnAssertFail -> Script -> IO ()
Documentation
data ValidModule Source #
data ValidationError Source #
parseScript :: ByteString -> Either String Script Source #
Parse WebAssembly extended scipt grammar
encodeLazy :: Module -> ByteString Source #
Dump Module
to binary representation lazily
decodeLazy :: ByteString -> Either String Module Source #
Decode Module
from binary representation lazily