ghcjs-base-stub-0.1.0.4: Allow GHCJS projects to compile under GHC and develop using intero.

Safe HaskellNone
LanguageHaskell2010

GHCJS.Marshal.Internal

Documentation

class FromJSVal a where #

Methods

fromJSVal :: JSVal -> IO (Maybe a) #

fromJSValUnchecked :: JSVal -> IO a #

fromJSValListOf :: JSVal -> IO (Maybe [a]) #

fromJSValUncheckedListOf :: JSVal -> IO [a] #

fromJSVal :: (Generic a, GFromJSVal (Rep a ())) => JSVal -> IO (Maybe a) #

class ToJSVal a where #

Methods

toJSVal :: a -> IO JSVal #

toJSValListOf :: [a] -> IO JSVal #

toJSVal :: (Generic a, GToJSVal (Rep a ())) => a -> IO JSVal #

class PToJSVal a where #

Minimal complete definition

pToJSVal

Methods

pToJSVal :: a -> JSVal #

class PFromJSVal a where #

Minimal complete definition

pFromJSVal

Methods

pFromJSVal :: JSVal -> a #

data Purity #

Constructors

PureShared

conversion is pure even if the original value is shared

PureExclusive

conversion is pure if the we only convert once

Instances

Eq Purity # 

Methods

(==) :: Purity -> Purity -> Bool #

(/=) :: Purity -> Purity -> Bool #

Data Purity # 

Methods

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 # 

toJSVal_generic :: forall a. (Generic a, GToJSVal (Rep a ())) => (String -> String) -> a -> IO JSVal #

fromJSVal_generic :: forall a. (Generic a, GFromJSVal (Rep a ())) => (String -> String) -> JSVal -> IO (Maybe a) #