wasm-1.0.0: WebAssembly Language Toolkit and Interpreter

Safe HaskellSafe
LanguageHaskell2010

Language.Wasm.Structure

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 # 

data Export Source #

Constructors

Export 

Fields

Instances

Eq Export Source # 

Methods

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

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

Show Export Source # 
Generic Export Source # 

Associated Types

type Rep Export :: * -> * #

Methods

from :: Export -> Rep Export x #

to :: Rep Export x -> Export #

NFData Export Source # 

Methods

rnf :: Export -> () #

type Rep Export Source # 
type Rep Export = D1 * (MetaData "Export" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) (C1 * (MetaCons "Export" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "desc") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ExportDesc))))

data Table Source #

Constructors

Table TableType 

Instances

Eq Table Source # 

Methods

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

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

Show Table Source # 

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #

Generic Table Source # 

Associated Types

type Rep Table :: * -> * #

Methods

from :: Table -> Rep Table x #

to :: Rep Table x -> Table #

NFData Table Source # 

Methods

rnf :: Table -> () #

type Rep Table Source # 
type Rep Table = D1 * (MetaData "Table" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) (C1 * (MetaCons "Table" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * TableType)))

data Memory Source #

Constructors

Memory Limit 

Instances

Eq Memory Source # 

Methods

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

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

Show Memory Source # 
Generic Memory Source # 

Associated Types

type Rep Memory :: * -> * #

Methods

from :: Memory -> Rep Memory x #

to :: Rep Memory x -> Memory #

NFData Memory Source # 

Methods

rnf :: Memory -> () #

type Rep Memory Source # 
type Rep Memory = D1 * (MetaData "Memory" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) (C1 * (MetaCons "Memory" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Limit)))

data Global Source #

Constructors

Global 

Instances

Eq Global Source # 

Methods

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

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

Show Global Source # 
Generic Global Source # 

Associated Types

type Rep Global :: * -> * #

Methods

from :: Global -> Rep Global x #

to :: Rep Global x -> Global #

NFData Global Source # 

Methods

rnf :: Global -> () #

type Rep Global Source # 
type Rep Global = D1 * (MetaData "Global" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) (C1 * (MetaCons "Global" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "globalType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * GlobalType)) (S1 * (MetaSel (Just Symbol "initializer") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Expression))))

data Function Source #

Constructors

Function 

Fields

Instances

data Import Source #

Constructors

Import 

Instances

Eq Import Source # 

Methods

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

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

Show Import Source # 
Generic Import Source # 

Associated Types

type Rep Import :: * -> * #

Methods

from :: Import -> Rep Import x #

to :: Rep Import x -> Import #

NFData Import Source # 

Methods

rnf :: Import -> () #

type Rep Import Source # 

data Instruction index Source #

Instances

Eq index => Eq (Instruction index) Source # 

Methods

(==) :: Instruction index -> Instruction index -> Bool #

(/=) :: Instruction index -> Instruction index -> Bool #

Show index => Show (Instruction index) Source # 

Methods

showsPrec :: Int -> Instruction index -> ShowS #

show :: Instruction index -> String #

showList :: [Instruction index] -> ShowS #

Generic (Instruction index) Source # 

Associated Types

type Rep (Instruction index) :: * -> * #

Methods

from :: Instruction index -> Rep (Instruction index) x #

to :: Rep (Instruction index) x -> Instruction index #

NFData index => NFData (Instruction index) Source # 

Methods

rnf :: Instruction index -> () #

type Rep (Instruction index) Source # 
type Rep (Instruction index) = D1 * (MetaData "Instruction" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * ((:+:) * ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Unreachable" PrefixI False) (U1 *)) (C1 * (MetaCons "Nop" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Block" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "resultType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ResultType)) (S1 * (MetaSel (Just Symbol "body") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Expression)))) (C1 * (MetaCons "Loop" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "resultType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ResultType)) (S1 * (MetaSel (Just Symbol "body") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Expression)))))) ((:+:) * ((:+:) * (C1 * (MetaCons "If" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "resultType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ResultType)) ((:*:) * (S1 * (MetaSel (Just Symbol "true") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Expression)) (S1 * (MetaSel (Just Symbol "false") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Expression))))) (C1 * (MetaCons "Br" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index)))) ((:+:) * (C1 * (MetaCons "BrIf" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index))) (C1 * (MetaCons "BrTable" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [index])) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index))))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Return" PrefixI False) (U1 *)) (C1 * (MetaCons "Call" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index)))) ((:+:) * (C1 * (MetaCons "CallIndirect" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index))) (C1 * (MetaCons "Drop" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "Select" PrefixI False) (U1 *)) (C1 * (MetaCons "GetLocal" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index)))) ((:+:) * (C1 * (MetaCons "SetLocal" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index))) (C1 * (MetaCons "TeeLocal" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index))))))) ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "GetGlobal" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index))) (C1 * (MetaCons "SetGlobal" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * index)))) ((:+:) * (C1 * (MetaCons "I32Load" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I64Load" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))))) ((:+:) * ((:+:) * (C1 * (MetaCons "F32Load" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "F64Load" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg)))) ((:+:) * (C1 * (MetaCons "I32Load8S" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I32Load8U" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg)))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "I32Load16S" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I32Load16U" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg)))) ((:+:) * (C1 * (MetaCons "I64Load8S" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I64Load8U" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))))) ((:+:) * ((:+:) * (C1 * (MetaCons "I64Load16S" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I64Load16U" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg)))) ((:+:) * (C1 * (MetaCons "I64Load32S" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) ((:+:) * (C1 * (MetaCons "I64Load32U" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I32Store" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))))))))) ((:+:) * ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "I64Store" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "F32Store" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg)))) ((:+:) * (C1 * (MetaCons "F64Store" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I32Store8" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))))) ((:+:) * ((:+:) * (C1 * (MetaCons "I32Store16" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I64Store8" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg)))) ((:+:) * (C1 * (MetaCons "I64Store16" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg))) (C1 * (MetaCons "I64Store32" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MemArg)))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "CurrentMemory" PrefixI False) (U1 *)) (C1 * (MetaCons "GrowMemory" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "I32Const" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Word32))) (C1 * (MetaCons "I64Const" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Word64))))) ((:+:) * ((:+:) * (C1 * (MetaCons "F32Const" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Float))) (C1 * (MetaCons "F64Const" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Double)))) ((:+:) * (C1 * (MetaCons "IUnOp" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * IUnOp)))) (C1 * (MetaCons "IBinOp" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * IBinOp)))))))) ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "I32Eqz" PrefixI False) (U1 *)) (C1 * (MetaCons "I64Eqz" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "IRelOp" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * IRelOp)))) (C1 * (MetaCons "FUnOp" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * FUnOp)))))) ((:+:) * ((:+:) * (C1 * (MetaCons "FBinOp" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * FBinOp)))) (C1 * (MetaCons "FRelOp" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * FRelOp))))) ((:+:) * (C1 * (MetaCons "I32WrapI64" PrefixI False) (U1 *)) (C1 * (MetaCons "ITruncFU" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize))))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "ITruncFS" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)))) (C1 * (MetaCons "I64ExtendSI32" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "I64ExtendUI32" PrefixI False) (U1 *)) (C1 * (MetaCons "FConvertIU" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)))))) ((:+:) * ((:+:) * (C1 * (MetaCons "FConvertIS" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize)))) (C1 * (MetaCons "F32DemoteF64" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "F64PromoteF32" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "IReinterpretF" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize))) (C1 * (MetaCons "FReinterpretI" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BitSize))))))))))

data MemArg Source #

Constructors

MemArg 

Fields

Instances

Eq MemArg Source # 

Methods

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

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

Show MemArg Source # 
Generic MemArg Source # 

Associated Types

type Rep MemArg :: * -> * #

Methods

from :: MemArg -> Rep MemArg x #

to :: Rep MemArg x -> MemArg #

NFData MemArg Source # 

Methods

rnf :: MemArg -> () #

type Rep MemArg Source # 
type Rep MemArg = D1 * (MetaData "MemArg" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) (C1 * (MetaCons "MemArg" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "offset") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Natural)) (S1 * (MetaSel (Just Symbol "align") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Natural))))

data IUnOp Source #

Constructors

IClz 
ICtz 
IPopcnt 

Instances

Eq IUnOp Source # 

Methods

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

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

Show IUnOp Source # 

Methods

showsPrec :: Int -> IUnOp -> ShowS #

show :: IUnOp -> String #

showList :: [IUnOp] -> ShowS #

Generic IUnOp Source # 

Associated Types

type Rep IUnOp :: * -> * #

Methods

from :: IUnOp -> Rep IUnOp x #

to :: Rep IUnOp x -> IUnOp #

NFData IUnOp Source # 

Methods

rnf :: IUnOp -> () #

type Rep IUnOp Source # 
type Rep IUnOp = D1 * (MetaData "IUnOp" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * (C1 * (MetaCons "IClz" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ICtz" PrefixI False) (U1 *)) (C1 * (MetaCons "IPopcnt" PrefixI False) (U1 *))))

data IBinOp Source #

Instances

Eq IBinOp Source # 

Methods

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

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

Show IBinOp Source # 
Generic IBinOp Source # 

Associated Types

type Rep IBinOp :: * -> * #

Methods

from :: IBinOp -> Rep IBinOp x #

to :: Rep IBinOp x -> IBinOp #

NFData IBinOp Source # 

Methods

rnf :: IBinOp -> () #

type Rep IBinOp Source # 
type Rep IBinOp = D1 * (MetaData "IBinOp" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "IAdd" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ISub" PrefixI False) (U1 *)) (C1 * (MetaCons "IMul" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "IDivU" PrefixI False) (U1 *)) (C1 * (MetaCons "IDivS" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "IRemU" PrefixI False) (U1 *)) (C1 * (MetaCons "IRemS" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "IAnd" PrefixI False) (U1 *)) (C1 * (MetaCons "IOr" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "IXor" PrefixI False) (U1 *)) (C1 * (MetaCons "IShl" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "IShrU" PrefixI False) (U1 *)) (C1 * (MetaCons "IShrS" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "IRotl" PrefixI False) (U1 *)) (C1 * (MetaCons "IRotr" PrefixI False) (U1 *))))))

data IRelOp Source #

Constructors

IEq 
INe 
ILtU 
ILtS 
IGtU 
IGtS 
ILeU 
ILeS 
IGeU 
IGeS 

Instances

Eq IRelOp Source # 

Methods

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

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

Show IRelOp Source # 
Generic IRelOp Source # 

Associated Types

type Rep IRelOp :: * -> * #

Methods

from :: IRelOp -> Rep IRelOp x #

to :: Rep IRelOp x -> IRelOp #

NFData IRelOp Source # 

Methods

rnf :: IRelOp -> () #

type Rep IRelOp Source # 
type Rep IRelOp = D1 * (MetaData "IRelOp" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "IEq" PrefixI False) (U1 *)) (C1 * (MetaCons "INe" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "ILtU" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ILtS" PrefixI False) (U1 *)) (C1 * (MetaCons "IGtU" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "IGtS" PrefixI False) (U1 *)) (C1 * (MetaCons "ILeU" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "ILeS" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "IGeU" PrefixI False) (U1 *)) (C1 * (MetaCons "IGeS" PrefixI False) (U1 *))))))

data FUnOp Source #

Constructors

FAbs 
FNeg 
FCeil 
FFloor 
FTrunc 
FNearest 
FSqrt 

Instances

Eq FUnOp Source # 

Methods

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

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

Show FUnOp Source # 

Methods

showsPrec :: Int -> FUnOp -> ShowS #

show :: FUnOp -> String #

showList :: [FUnOp] -> ShowS #

Generic FUnOp Source # 

Associated Types

type Rep FUnOp :: * -> * #

Methods

from :: FUnOp -> Rep FUnOp x #

to :: Rep FUnOp x -> FUnOp #

NFData FUnOp Source # 

Methods

rnf :: FUnOp -> () #

type Rep FUnOp Source # 
type Rep FUnOp = D1 * (MetaData "FUnOp" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * ((:+:) * (C1 * (MetaCons "FAbs" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FNeg" PrefixI False) (U1 *)) (C1 * (MetaCons "FCeil" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "FFloor" PrefixI False) (U1 *)) (C1 * (MetaCons "FTrunc" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "FNearest" PrefixI False) (U1 *)) (C1 * (MetaCons "FSqrt" PrefixI False) (U1 *)))))

data FBinOp Source #

Constructors

FAdd 
FSub 
FMul 
FDiv 
FMin 
FMax 
FCopySign 

Instances

Eq FBinOp Source # 

Methods

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

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

Show FBinOp Source # 
Generic FBinOp Source # 

Associated Types

type Rep FBinOp :: * -> * #

Methods

from :: FBinOp -> Rep FBinOp x #

to :: Rep FBinOp x -> FBinOp #

NFData FBinOp Source # 

Methods

rnf :: FBinOp -> () #

type Rep FBinOp Source # 
type Rep FBinOp = D1 * (MetaData "FBinOp" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * ((:+:) * (C1 * (MetaCons "FAdd" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FSub" PrefixI False) (U1 *)) (C1 * (MetaCons "FMul" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "FDiv" PrefixI False) (U1 *)) (C1 * (MetaCons "FMin" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "FMax" PrefixI False) (U1 *)) (C1 * (MetaCons "FCopySign" PrefixI False) (U1 *)))))

data FRelOp Source #

Constructors

FEq 
FNe 
FLt 
FGt 
FLe 
FGe 

Instances

Eq FRelOp Source # 

Methods

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

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

Show FRelOp Source # 
Generic FRelOp Source # 

Associated Types

type Rep FRelOp :: * -> * #

Methods

from :: FRelOp -> Rep FRelOp x #

to :: Rep FRelOp x -> FRelOp #

NFData FRelOp Source # 

Methods

rnf :: FRelOp -> () #

type Rep FRelOp Source # 
type Rep FRelOp = D1 * (MetaData "FRelOp" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * ((:+:) * (C1 * (MetaCons "FEq" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FNe" PrefixI False) (U1 *)) (C1 * (MetaCons "FLt" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "FGt" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FLe" PrefixI False) (U1 *)) (C1 * (MetaCons "FGe" PrefixI False) (U1 *)))))

data BitSize Source #

Constructors

BS32 
BS64 

Instances

Eq BitSize Source # 

Methods

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

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

Show BitSize Source # 
Generic BitSize Source # 

Associated Types

type Rep BitSize :: * -> * #

Methods

from :: BitSize -> Rep BitSize x #

to :: Rep BitSize x -> BitSize #

NFData BitSize Source # 

Methods

rnf :: BitSize -> () #

type Rep BitSize Source # 
type Rep BitSize = D1 * (MetaData "BitSize" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * (C1 * (MetaCons "BS32" PrefixI False) (U1 *)) (C1 * (MetaCons "BS64" PrefixI False) (U1 *)))

data ElemType Source #

Constructors

AnyFunc 

Instances

Eq ElemType Source # 
Show ElemType Source # 
Generic ElemType Source # 

Associated Types

type Rep ElemType :: * -> * #

Methods

from :: ElemType -> Rep ElemType x #

to :: Rep ElemType x -> ElemType #

NFData ElemType Source # 

Methods

rnf :: ElemType -> () #

type Rep ElemType Source # 
type Rep ElemType = D1 * (MetaData "ElemType" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) (C1 * (MetaCons "AnyFunc" PrefixI False) (U1 *))

data Limit Source #

Constructors

Limit Natural (Maybe Natural) 

Instances

Eq Limit Source # 

Methods

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

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

Show Limit Source # 

Methods

showsPrec :: Int -> Limit -> ShowS #

show :: Limit -> String #

showList :: [Limit] -> ShowS #

Generic Limit Source # 

Associated Types

type Rep Limit :: * -> * #

Methods

from :: Limit -> Rep Limit x #

to :: Rep Limit x -> Limit #

NFData Limit Source # 

Methods

rnf :: Limit -> () #

type Rep Limit Source # 

data FuncType Source #

Constructors

FuncType 

Fields

Instances

data ValueType Source #

Constructors

I32 
I64 
F32 
F64 

Instances

Eq ValueType Source # 
Show ValueType Source # 
Generic ValueType Source # 

Associated Types

type Rep ValueType :: * -> * #

NFData ValueType Source # 

Methods

rnf :: ValueType -> () #

type Rep ValueType Source # 
type Rep ValueType = D1 * (MetaData "ValueType" "Language.Wasm.Structure" "wasm-1.0.0-3p6AkTQBgB5H14IIPDel9m" False) ((:+:) * ((:+:) * (C1 * (MetaCons "I32" PrefixI False) (U1 *)) (C1 * (MetaCons "I64" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "F32" PrefixI False) (U1 *)) (C1 * (MetaCons "F64" PrefixI False) (U1 *))))