Safe Haskell | None |
---|---|
Language | Haskell2010 |
- currentDocument :: IO (Maybe Document)
- data Document
- data Element
- type JSAny = JSRef ()
- documentGetElementById :: self -> elementId -> IO (Maybe Element)
- data ForeignRetention
- = NeverRetain
- | AlwaysRetain
- | DomRetain (forall a. JSRef a)
- data JSRef a = JSRef
- type JSFun = JSRef
- type JSArray = JSRef
- type JSString = JSRef JSString_
- class FromJSString a where
- fromJSString :: JSString -> a
- class ToJSString a where
- toJSString :: a -> JSString
- class FromJSRef a where
- class ToJSRef a where
- castRef :: JSRef a -> JSRef b
- newObj :: IO (JSRef a)
- setProp :: ToJSString a => a -> JSRef b -> JSRef c -> IO ()
- eqRef :: JSRef a -> JSRef a -> Bool
- toArray :: [JSRef a] -> IO (JSArray a)
- setProp :: ToJSString a => a -> JSRef b -> JSRef c -> IO ()
- syncCallback1 :: ForeignRetention -> Bool -> (JSRef a -> IO b) -> IO (JSFun (JSRef a -> IO b))
- syncCallback2 :: ForeignRetention -> Bool -> (JSRef a -> JSRef b -> IO c) -> IO (JSFun (JSRef a -> JSRef b -> IO c))
Documentation
currentDocument :: IO (Maybe Document) Source
documentGetElementById :: self -> elementId -> IO (Maybe Element) Source
GHCJS stubs
data ForeignRetention Source
NeverRetain | |
AlwaysRetain | |
DomRetain (forall a. JSRef a) |
class FromJSString a where Source
fromJSString :: JSString -> a Source
class ToJSString a where Source
toJSString :: a -> JSString Source
syncCallback1 :: ForeignRetention -> Bool -> (JSRef a -> IO b) -> IO (JSFun (JSRef a -> IO b)) Source