inline-js-examples-0.0.1.0: Call JavaScript from Haskell.
Safe HaskellNone
LanguageHaskell2010

Language.JavaScript.Inline.Examples.Wasm

Documentation

newtype I32 Source #

Constructors

I32 Word32 

Instances

Instances details
Show I32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

showsPrec :: Int -> I32 -> ShowS #

show :: I32 -> String #

showList :: [I32] -> ShowS #

Storable I32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

sizeOf :: I32 -> Int #

alignment :: I32 -> Int #

peekElemOff :: Ptr I32 -> Int -> IO I32 #

pokeElemOff :: Ptr I32 -> Int -> I32 -> IO () #

peekByteOff :: Ptr b -> Int -> IO I32 #

pokeByteOff :: Ptr b -> Int -> I32 -> IO () #

peek :: Ptr I32 -> IO I32 #

poke :: Ptr I32 -> I32 -> IO () #

FromJS I32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

ToJS I32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

toJS :: I32 -> JSExpr #

newtype I64 Source #

Constructors

I64 Word64 

Instances

Instances details
Show I64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

showsPrec :: Int -> I64 -> ShowS #

show :: I64 -> String #

showList :: [I64] -> ShowS #

Storable I64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

sizeOf :: I64 -> Int #

alignment :: I64 -> Int #

peekElemOff :: Ptr I64 -> Int -> IO I64 #

pokeElemOff :: Ptr I64 -> Int -> I64 -> IO () #

peekByteOff :: Ptr b -> Int -> IO I64 #

pokeByteOff :: Ptr b -> Int -> I64 -> IO () #

peek :: Ptr I64 -> IO I64 #

poke :: Ptr I64 -> I64 -> IO () #

FromJS I64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

ToJS I64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

toJS :: I64 -> JSExpr #

newtype F32 Source #

Constructors

F32 Float 

Instances

Instances details
Show F32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

showsPrec :: Int -> F32 -> ShowS #

show :: F32 -> String #

showList :: [F32] -> ShowS #

Storable F32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

sizeOf :: F32 -> Int #

alignment :: F32 -> Int #

peekElemOff :: Ptr F32 -> Int -> IO F32 #

pokeElemOff :: Ptr F32 -> Int -> F32 -> IO () #

peekByteOff :: Ptr b -> Int -> IO F32 #

pokeByteOff :: Ptr b -> Int -> F32 -> IO () #

peek :: Ptr F32 -> IO F32 #

poke :: Ptr F32 -> F32 -> IO () #

FromJS F32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

ToJS F32 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

toJS :: F32 -> JSExpr #

newtype F64 Source #

Constructors

F64 Double 

Instances

Instances details
Show F64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

showsPrec :: Int -> F64 -> ShowS #

show :: F64 -> String #

showList :: [F64] -> ShowS #

Storable F64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

sizeOf :: F64 -> Int #

alignment :: F64 -> Int #

peekElemOff :: Ptr F64 -> Int -> IO F64 #

pokeElemOff :: Ptr F64 -> Int -> F64 -> IO () #

peekByteOff :: Ptr b -> Int -> IO F64 #

pokeByteOff :: Ptr b -> Int -> F64 -> IO () #

peek :: Ptr F64 -> IO F64 #

poke :: Ptr F64 -> F64 -> IO () #

FromJS F64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

ToJS F64 Source # 
Instance details

Defined in Language.JavaScript.Inline.Examples.Wasm

Methods

toJS :: F64 -> JSExpr #

importAdd :: Export f => Session -> JSVal -> String -> String -> f -> IO () Source #