Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype JSVal = JSVal ()
- data WouldBlockException = WouldBlockException
- data JSException = JSException JSVal String
- mkJSException :: JSVal -> IO JSException
- fromJSString :: JSVal -> String
- toJSString :: String -> JSVal
- toJSArray :: [JSVal] -> IO JSVal
- fromJSArray :: JSVal -> IO [JSVal]
- fromJSInt :: JSVal -> Int
- toJSInt :: Int -> JSVal
- isNull :: JSVal -> Bool
- isUndefined :: JSVal -> Bool
- jsNull :: JSVal
- getProp :: JSVal -> String -> IO JSVal
- getProp' :: JSVal -> JSVal -> IO JSVal
Documentation
data WouldBlockException Source #
If a synchronous thread tries to do something that can only be done asynchronously, and the thread is set up to not continue asynchronously, it receives this exception.
data JSException Source #
mkJSException :: JSVal -> IO JSException Source #
fromJSString :: JSVal -> String Source #
Low-level conversion utilities for packages that cannot depend on ghcjs-base
returns an empty string if the JSVal does not contain a string
toJSString :: String -> JSVal Source #
isUndefined :: JSVal -> Bool Source #