Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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.
data JSException Source #
isUndefined :: JSVal -> Bool Source #
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.