wasm-1.0.0: WebAssembly Language Toolkit and Interpreter

Safe HaskellNone
LanguageHaskell2010

Language.Wasm

Synopsis

Documentation

data Module Source #

Instances

Eq Module Source # 

Methods

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

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

Show Module Source # 
Generic Module Source # 

Associated Types

type Rep Module :: * -> * #

Methods

from :: Module -> Rep Module x #

to :: Rep Module x -> Module #

NFData Module Source # 

Methods

rnf :: Module -> () #

type Rep Module Source # 

parse :: ByteString -> Either String Module Source #

Parse WebAssembly text representation to Module

parseScript :: ByteString -> Either String Script Source #

Parse WebAssembly extended scipt grammar

encode :: Module -> ByteString Source #

Dump Module to binary representation

encodeLazy :: Module -> ByteString Source #

Dump Module to binary representation lazily

decode :: ByteString -> Either String Module Source #

Decode Module from binary representation

decodeLazy :: ByteString -> Either String Module Source #

Decode Module from binary representation lazily