Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
class FromJSVal a where Source #
fromJSVal :: JSVal -> IO (Maybe a) Source #
fromJSValUnchecked :: JSVal -> IO a Source #
fromJSValListOf :: JSVal -> IO (Maybe [a]) Source #
fromJSValUncheckedListOf :: JSVal -> IO [a] Source #
fromJSVal :: (Generic a, GFromJSVal (Rep a ())) => JSVal -> IO (Maybe a) Source #
Instances
class ToJSVal a where Source #
toJSVal :: a -> IO JSVal Source #
toJSValListOf :: [a] -> IO JSVal Source #
toJSVal :: (Generic a, GToJSVal (Rep a ())) => a -> IO JSVal Source #
Instances
ToJSVal Bool Source # | |
ToJSVal Char Source # | |
ToJSVal Double Source # | |
ToJSVal Float Source # | |
ToJSVal Int Source # | |
ToJSVal Int8 Source # | |
ToJSVal Int16 Source # | |
ToJSVal Int32 Source # | |
ToJSVal Word Source # | |
ToJSVal Word8 Source # | |
ToJSVal Word16 Source # | |
ToJSVal Word32 Source # | |
ToJSVal Text Source # | |
ToJSVal Value Source # | |
ToJSVal JSVal Source # | |
ToJSVal JSString Source # | |
ToJSVal a => ToJSVal [a] Source # | |
ToJSVal a => ToJSVal (Maybe a) Source # | |
(ToJSVal a, ToJSVal b) => ToJSVal (a, b) Source # | |
(ToJSVal a, ToJSVal b, ToJSVal c) => ToJSVal (a, b, c) Source # | |
(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d) => ToJSVal (a, b, c, d) Source # | |
(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d, ToJSVal e) => ToJSVal (a, b, c, d, e) Source # | |
(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d, ToJSVal e, ToJSVal f) => ToJSVal (a, b, c, d, e, f) Source # | |
(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d, ToJSVal e, ToJSVal f, ToJSVal g) => ToJSVal (a, b, c, d, e, f, g) Source # | |
class PToJSVal a where Source #
Instances
PToJSVal Bool Source # | |
PToJSVal Char Source # | |
PToJSVal Double Source # | |
PToJSVal Float Source # | |
PToJSVal Int Source # | |
PToJSVal Int8 Source # | |
Defined in GHCJS.Marshal.Pure | |
PToJSVal Int16 Source # | |
Defined in GHCJS.Marshal.Pure | |
PToJSVal Int32 Source # | |
Defined in GHCJS.Marshal.Pure | |
PToJSVal Word Source # | |
PToJSVal Word8 Source # | |
Defined in GHCJS.Marshal.Pure | |
PToJSVal Word16 Source # | |
Defined in GHCJS.Marshal.Pure | |
PToJSVal Word32 Source # | |
Defined in GHCJS.Marshal.Pure | |
PToJSVal Text Source # | |
Defined in GHCJS.Marshal.Pure | |
PToJSVal JSVal Source # | |
PToJSVal JSString Source # | |
PToJSVal MutableArrayBuffer Source # | |
Defined in JavaScript.TypedArray.ArrayBuffer.Internal pToJSVal :: MutableArrayBuffer -> JSVal Source # | |
PToJSVal [Char] Source # | |
PToJSVal a => PToJSVal (Maybe a) Source # | |
class PFromJSVal a where Source #
pFromJSVal :: JSVal -> a Source #
Instances
PureShared | conversion is pure even if the original value is shared |
PureExclusive | conversion is pure if the we only convert once |
Instances
Eq Purity Source # | |
Data Purity Source # | |
Defined in GHCJS.Marshal.Internal gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Purity -> c Purity gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Purity dataTypeOf :: Purity -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Purity) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Purity) gmapT :: (forall b. Data b => b -> b) -> Purity -> Purity gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Purity -> r gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Purity -> r gmapQ :: (forall d. Data d => d -> u) -> Purity -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Purity -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Purity -> m Purity gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Purity -> m Purity gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Purity -> m Purity | |
Ord Purity Source # | |
toJSVal_generic :: forall a. (Generic a, GToJSVal (Rep a ())) => (String -> String) -> a -> IO JSVal Source #
fromJSVal_generic :: forall a. (Generic a, GFromJSVal (Rep a ())) => (String -> String) -> JSVal -> IO (Maybe a) Source #
fromJSVal_pure :: PFromJSVal a => JSVal -> IO (Maybe a) Source #
fromJSValUnchecked_pure :: PFromJSVal a => JSVal -> IO a Source #