Portability | portable |
---|---|
Stability | experimental |
Maintainer | golubovsky@gmail.com |
Mutable Javascript reference objects
- data JSRef a
- newJSRef :: Expression a -> JSMW e (Expression (JSRef a))
- readJSRef :: Expression (JSRef a) -> JSMW e (Expression a)
- writeJSRef :: Expression (JSRef a) -> Expression a -> JSMW e (Expression (JSRef a))
Documentation
newJSRef :: Expression a -> JSMW e (Expression (JSRef a))Source
Create a mutable Javascript reference object and initialize it.
readJSRef :: Expression (JSRef a) -> JSMW e (Expression a)Source
Retrieve a value from a mutable Javascript reference object.
writeJSRef :: Expression (JSRef a) -> Expression a -> JSMW e (Expression (JSRef a))Source
Store a value in a mutable Javascript reference object.