Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data JSVal
- data WouldBlockException = WouldBlockException
- data JSException = JSException JSVal String
- class IsJSVal a
- jsval :: IsJSVal a => a -> GHCJSPure JSVal
- isNull :: JSVal -> GHCJSPure Bool
- isUndefined :: JSVal -> GHCJSPure Bool
- nullRef :: JSVal
- data JSString
- mkRef :: Ref# -> JSVal
- type Ref# = IORef Int64
- 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.
data JSException Source #
IsJSVal (SomeJSArray s m) Source # | |
IsJSVal (SomeArrayBuffer s m) Source # | |
IsJSVal (SomeTypedArray s e m) Source # | |
A wrapper around a JavaScript string
Deprecated: Use JSVal instead, or a more specific newtype wrapper of JSVal
This is a deprecated copmatibility wrapper for the old JSRef type.