Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype JSVal = JSVal (IORef JSValueRef)
- type JSValueRef = Int64
- data JSException = JSException JSVal String
- data WouldBlockException = WouldBlockException
- mkJSException :: JSVal -> IO JSException
- jsNull :: 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 # | |
type JSValueRef = Int64 Source #
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 |
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 |
mkJSException :: JSVal -> IO JSException Source #