Safe Haskell | None |
---|---|
Language | Haskell98 |
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
data WouldBlockException #
Instances
Show WouldBlockException | |
Defined in GHCJS.Prim showsPrec :: Int -> WouldBlockException -> ShowS # show :: WouldBlockException -> String # showList :: [WouldBlockException] -> ShowS # | |
Exception WouldBlockException | |
Defined in GHCJS.Prim |
data JSException #
Instances
Show JSException | |
Defined in GHCJS.Prim showsPrec :: Int -> JSException -> ShowS # show :: JSException -> String # showList :: [JSException] -> ShowS # | |
Exception JSException | |
Defined in GHCJS.Prim |
Instances
IsJSVal JSString Source # | |
Defined in Data.JSString.Internal.Type | |
IsJSVal Object Source # | |
Defined in JavaScript.Object.Internal | |
IsJSVal TextMetrics Source # | |
Defined in JavaScript.Web.Canvas.Internal jsval_ :: TextMetrics -> JSVal | |
IsJSVal Pattern Source # | |
Defined in JavaScript.Web.Canvas.Internal | |
IsJSVal ImageData Source # | |
Defined in JavaScript.Web.Canvas.Internal | |
IsJSVal Image Source # | |
Defined in JavaScript.Web.Canvas.Internal | |
IsJSVal Gradient Source # | |
Defined in JavaScript.Web.Canvas.Internal | |
IsJSVal Context Source # | |
Defined in JavaScript.Web.Canvas.Internal | |
IsJSVal Canvas Source # | |
Defined in JavaScript.Web.Canvas.Internal | |
IsJSVal Location Source # | |
Defined in JavaScript.Web.Location | |
IsJSVal (Export a) Source # | |
Defined in GHCJS.Foreign.Export | |
IsJSVal (Callback a) Source # | |
Defined in GHCJS.Foreign.Callback.Internal | |
IsJSVal (SomeJSArray m) Source # | |
Defined in JavaScript.Array.Internal jsval_ :: SomeJSArray m -> JSVal |
isUndefined :: JSVal -> Bool #
A wrapper around a JavaScript string
Instances
IsList JSString | |
Eq JSString # | |
Data JSString | This instance preserves data abstraction at the cost of inefficiency. See Data.Text for more information |
Defined in Data.JSString 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 | |
Read JSString # | |
Show JSString # | |
IsString JSString | |
Defined in Data.JSString fromString :: String -> JSString | |
Semigroup JSString # | |
Monoid JSString # | |
NFData JSString Source # | |
Defined in Data.JSString.Internal.Type | |
IsJSVal JSString Source # | |
Defined in Data.JSString.Internal.Type | |
PrintfArg JSString | |
Defined in Data.JSString formatArg :: JSString -> FieldFormatter parseFormat :: JSString -> ModifierParser | |
FromJSON JSString Source # | |
ToJSON JSString Source # | |
FromJSVal JSString Source # | |
ToJSVal JSString Source # | |
PFromJSVal JSString Source # | |
Defined in GHCJS.Marshal.Pure pFromJSVal :: JSVal -> JSString Source # | |
PToJSVal JSString Source # | |
m ~ Immutable => ResponseType JSString Source # | |
Defined in JavaScript.Web.XMLHttpRequest getResponseTypeString :: Proxy JSString -> JSString Source # wrapResponseType :: JSVal -> JSString Source # | |
Lookup JSString Object Source # | |
Lookup JSString Value Source # | |
type Item JSString | |
Defined in Data.JSString |
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.