Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data JSVal
- data WouldBlockException = WouldBlockException
- data JSException = JSException JSVal String
- class IsJSVal a
- jsval :: IsJSVal a => a -> JSVal
- isNull :: JSVal -> Bool
- isUndefined :: JSVal -> Bool
- nullRef :: JSVal
- data JSString
- mkRef :: ByteArray# -> JSVal
- type Ref# = ByteArray#
- toPtr :: JSVal -> Ptr a
- fromPtr :: Ptr a -> JSVal
- type JSRef a = 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.
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 |
Instances
IsJSVal JSString Source # | |
Defined in Data.JSString.Internal.Type | |
IsJSVal Object Source # | |
Defined in JavaScript.Object.Internal | |
IsJSVal (Export a) Source # | |
Defined in GHCJS.Foreign.Export | |
IsJSVal (Callback a) Source # | |
Defined in GHCJS.Foreign.Callback.Internal | |
IsJSVal (SomeJSArray m) Source # | |
Defined in JavaScript.Array.Internal jsval_ :: SomeJSArray m -> JSVal |
isUndefined :: JSVal -> Bool Source #
Instances
mkRef :: ByteArray# -> JSVal Source #
type Ref# = ByteArray# Source #
Deprecated: Use JSVal instead, or a more specific newtype wrapper of JSVal
This is a deprecated copmatibility wrapper for the old JSRef type.