jsaddle-0.9.4.0: Interface for JavaScript that works with GHCJS and GHC
JavaScript.Object.Internal
Synopsis
newtype Object Source #
See Object
Object
Constructors
Instances
If we already have a Object we are fine
Methods
makeObject :: Object -> JSM Object Source #
create :: JSM Object Source #
create an empty object
listProps :: Object -> JSM [JSString] Source #
getProp :: JSString -> Object -> JSM JSVal Source #
get a property from an object. If accessing the property results in an exception, the exception is converted to a JSException. Since exception handling code prevents some optimizations in some JS engines, you may want to use unsafeGetProp instead
unsafeGetProp :: JSString -> Object -> JSM JSVal Source #
setProp :: JSString -> JSVal -> Object -> JSM () Source #
unsafeSetProp :: JSString -> JSVal -> Object -> JSM () Source #