| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHCJS.Prim.Internal
Synopsis
- newtype JSVal = JSVal (IORef JSValueRef)
- type JSValueRef = Int64
- data JSException = JSException JSVal String
- data WouldBlockException = WouldBlockException
- mkJSException :: JSVal -> IO JSException
- jsNull :: JSVal
Documentation
Constructors
| JSVal (IORef JSValueRef) |
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 Methods toJSVal :: JSCallAsFunction -> JSM JSVal Source # toJSValListOf :: [JSCallAsFunction] -> JSM JSVal Source # | |
| PFromJSVal JSVal Source # | |
Defined in GHCJS.Marshal.Pure Methods pFromJSVal :: JSVal -> JSVal Source # | |
| PToJSVal JSVal Source # | |
type JSValueRef = Int64 Source #
data JSException Source #
Constructors
| JSException JSVal String |
Instances
| Show JSException Source # | |
Defined in GHCJS.Prim.Internal Methods showsPrec :: Int -> JSException -> ShowS # show :: JSException -> String # showList :: [JSException] -> ShowS # | |
| Exception JSException Source # | |
Defined in GHCJS.Prim.Internal Methods toException :: JSException -> SomeException # fromException :: SomeException -> Maybe JSException # displayException :: JSException -> String # | |
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.
Constructors
| WouldBlockException |
Instances
| Show WouldBlockException Source # | |
Defined in GHCJS.Prim.Internal Methods showsPrec :: Int -> WouldBlockException -> ShowS # show :: WouldBlockException -> String # showList :: [WouldBlockException] -> ShowS # | |
| Exception WouldBlockException Source # | |
Defined in GHCJS.Prim.Internal Methods toException :: WouldBlockException -> SomeException # fromException :: SomeException -> Maybe WouldBlockException # | |
mkJSException :: JSVal -> IO JSException Source #