jsaddle-0.9.2.1: Interface for JavaScript that works with GHCJS and GHC
JavaScript.Object
Synopsis
data Object Source #
See Object
Object
Instances
Methods
showsPrec :: Int -> Object -> ShowS #
show :: Object -> String #
showList :: [Object] -> ShowS #
toJSON :: Object -> Value #
toEncoding :: Object -> Encoding #
toJSONList :: [Object] -> Value #
toEncodingList :: [Object] -> Encoding #
parseJSON :: Value -> Parser Object #
parseJSONList :: Value -> Parser [Object] #
If we already have a Object we are fine
makeObject :: Object -> JSM Object Source #
create :: JSM Object Source #
create an empty object
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 #
listProps :: Object -> JSM [JSString] Source #