| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHCJS.Types
Synopsis
- 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
Instances
| NFData JSVal # | |
Defined in GHCJS.Internal.Types | |
| FromJSVal JSVal # | |
| ToJSVal JSVal # | |
| PFromJSVal JSVal # | |
Defined in GHCJS.Marshal.Pure Methods pFromJSVal :: JSVal -> JSVal # | |
| PToJSVal JSVal # | |
Defined in GHCJS.Marshal.Pure | |
data WouldBlockException #
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 # | |
Defined in GHCJS.Prim Methods showsPrec :: Int -> WouldBlockException -> ShowS # show :: WouldBlockException -> String # showList :: [WouldBlockException] -> ShowS # | |
| Exception WouldBlockException # | |
Defined in GHCJS.Prim Methods toException :: WouldBlockException -> SomeException # fromException :: SomeException -> Maybe WouldBlockException # | |
data JSException #
Constructors
| JSException JSVal String |
Instances
| Show JSException # | |
Defined in GHCJS.Prim Methods showsPrec :: Int -> JSException -> ShowS # show :: JSException -> String # showList :: [JSException] -> ShowS # | |
| Exception JSException # | |
Defined in GHCJS.Prim Methods toException :: JSException -> SomeException # fromException :: SomeException -> Maybe JSException # displayException :: JSException -> String # | |
Instances
| IsJSVal JSString # | |
Defined in Data.JSString.Internal.Type | |
| IsJSVal Object # | |
Defined in JavaScript.Object.Internal | |
| IsJSVal (Export a) # | |
Defined in GHCJS.Foreign.Export | |
| IsJSVal (Callback a) # | |
Defined in GHCJS.Foreign.Callback.Internal | |
| IsJSVal (SomeJSArray m) # | |
Defined in JavaScript.Array.Internal Methods jsval_ :: SomeJSArray m -> JSVal | |
isUndefined :: JSVal -> Bool #
Instances
| Eq JSString # | |
| Data JSString # | |
Defined in Data.JSString.Internal.Type Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSString -> c JSString # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSString # toConstr :: JSString -> Constr # dataTypeOf :: JSString -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSString) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSString) # gmapT :: (forall b. Data b => b -> b) -> JSString -> JSString # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSString -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSString -> r # gmapQ :: (forall d. Data d => d -> u) -> JSString -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> JSString -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSString -> m JSString # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSString -> m JSString # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSString -> m JSString # | |
| Ord JSString # | |
Defined in Data.JSString.Internal.Type | |
| Read JSString # | |
| Show JSString # | |
| IsString JSString # | |
Defined in Data.JSString.Internal.Type Methods fromString :: String -> JSString # | |
| Semigroup JSString # | |
| Monoid JSString # | |
| NFData JSString # | |
Defined in Data.JSString.Internal.Type | |
| IsJSVal JSString # | |
Defined in Data.JSString.Internal.Type | |
| FromJSVal JSString # | |
| ToJSVal JSString # | |
| PFromJSVal JSString # | |
Defined in GHCJS.Marshal.Pure Methods pFromJSVal :: JSVal -> JSString # | |
| PToJSVal JSString # | |
Defined in GHCJS.Marshal.Pure | |
mkRef :: ByteArray# -> JSVal #
type Ref# = ByteArray# #
Deprecated: Use JSVal instead, or a more specific newtype wrapper of JSVal
This is a deprecated copmatibility wrapper for the old JSRef type.