jsmw-0.1: Javascript Monadic Writer base package.

Portabilityportable
Stabilityexperimental
Maintainergolubovsky@gmail.com

Data.JSRef

Description

Mutable Javascript reference objects

Synopsis

Documentation

data JSRef a Source

An opaque data type parameterized by the type of the stored value.

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.