Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
JSVal () |
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.
Instances
Show WouldBlockException Source # | |
Defined in GHCJS.Prim showsPrec :: Int -> WouldBlockException -> ShowS # show :: WouldBlockException -> String # showList :: [WouldBlockException] -> ShowS # | |
Exception WouldBlockException Source # | |
Defined in GHCJS.Prim |
data JSException Source #
Instances
Show JSException Source # | |
Defined in GHCJS.Prim showsPrec :: Int -> JSException -> ShowS # show :: JSException -> String # showList :: [JSException] -> ShowS # | |
Exception JSException Source # | |
Defined in GHCJS.Prim |
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 #