javascript-extras-0.3.2.0: Extra javascript functions when using GHCJS
JavaScript.Extras.Property
Synopsis
type Property = (JSString, JSVar) Source #
getProperty :: Coercible a JSVal => JSString -> a -> IO JSVar Source #
get a property of any JSVal. If a null or undefined is queried, the result will also be null
setProperty :: Coercible a JSVal => Property -> a -> IO () Source #
set a property of any JSVal
fromProperties :: [Property] -> Object Source #
toProperties :: Object -> IO [Property] Source #