Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class FromJSVal a where Source #
fromJSVal :: JSVal -> JSM (Maybe a) Source #
fromJSValUnchecked :: JSVal -> JSM a Source #
fromJSValListOf :: JSVal -> JSM (Maybe [a]) Source #
fromJSValUncheckedListOf :: JSVal -> JSM [a] Source #
fromJSVal :: (Generic a, GFromJSVal (Rep a ())) => JSVal -> JSM (Maybe a) Source #
Instances
class ToJSVal a where Source #
toJSVal :: a -> JSM JSVal Source #
toJSValListOf :: [a] -> JSM JSVal Source #
toJSVal :: (Generic a, GToJSVal (Rep a ())) => a -> JSM JSVal Source #
Instances
class PFromJSVal a where Source #
pFromJSVal :: JSVal -> a Source #
Instances
PFromJSVal () Source # | |
Defined in GHCJS.Marshal.Pure pFromJSVal :: JSVal -> () Source # | |
PFromJSVal JSVal Source # | |
Defined in GHCJS.Marshal.Pure pFromJSVal :: JSVal -> JSVal Source # | |
PFromJSVal MutableArrayBuffer Source # | |
Defined in JavaScript.TypedArray.ArrayBuffer.Internal pFromJSVal :: JSVal -> MutableArrayBuffer Source # |
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 # toConstr :: Purity -> Constr # 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 -> JSM JSVal Source #
fromJSVal_generic :: forall a. (Generic a, GFromJSVal (Rep a ())) => (String -> String) -> JSVal -> JSM (Maybe a) Source #
fromJSVal_pure :: PFromJSVal a => JSVal -> JSM (Maybe a) Source #
fromJSValUnchecked_pure :: PFromJSVal a => JSVal -> JSM a Source #