Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
Instances
NFData JSVal Source # | |
Defined in GHCJS.Prim.Internal | |
MakeArgs JSVal Source # | A single JSVal can be used as the argument list |
MakeArgs JSCallAsFunction Source # | |
Defined in Language.Javascript.JSaddle.Object | |
MakeObject JSVal Source # | |
Defined in Language.Javascript.JSaddle.Value | |
FromJSVal JSVal Source # | |
ToJSVal JSVal Source # | If we already have a JSVal we are fine |
ToJSVal JSCallAsFunction Source # | A callback to Haskell can be used as a JavaScript value. This will create
an anonymous JavaScript function object. Use |
Defined in Language.Javascript.JSaddle.Object toJSVal :: JSCallAsFunction -> JSM JSVal Source # toJSValListOf :: [JSCallAsFunction] -> JSM JSVal Source # | |
PFromJSVal JSVal Source # | |
Defined in GHCJS.Marshal.Pure pFromJSVal :: JSVal -> JSVal Source # | |
PToJSVal JSVal Source # | |
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.Internal showsPrec :: Int -> WouldBlockException -> ShowS # show :: WouldBlockException -> String # showList :: [WouldBlockException] -> ShowS # | |
Exception WouldBlockException Source # | |
Defined in GHCJS.Prim.Internal |
data JSException Source #
Instances
Show JSException Source # | |
Defined in GHCJS.Prim.Internal showsPrec :: Int -> JSException -> ShowS # show :: JSException -> String # showList :: [JSException] -> ShowS # | |
Exception JSException Source # | |
Defined in GHCJS.Prim.Internal |
Instances
IsJSVal JSString Source # | |
IsJSVal (SomeJSArray m) Source # | |
Defined in Language.Javascript.JSaddle.Types | |
IsJSVal (SomeArrayBuffer m) Source # | |
Defined in JavaScript.TypedArray.ArrayBuffer.Internal | |
IsJSVal (SomeTypedArray e m) Source # | |
Defined in JavaScript.TypedArray.Internal.Types |
A wrapper around a JavaScript string
Instances
Deprecated: Use JSVal instead, or a more specific newtype wrapper of JSVal
This is a deprecated copmatibility wrapper for the old JSRef type.