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

Safe HaskellNone
LanguageHaskell2010

GHCJS.Marshal.Internal

Documentation

class FromJSVal a where Source #

Minimal complete definition

Nothing

Instances
FromJSVal Bool Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Char Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Double Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Float Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Int Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Int8 Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Int16 Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Int32 Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Word Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Word8 Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Word16 Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Word32 Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal () Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Text Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal Value Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal a => FromJSVal [a] Source # 
Instance details

Defined in GHCJS.Marshal

FromJSVal a => FromJSVal (Maybe a) Source # 
Instance details

Defined in GHCJS.Marshal

(FromJSVal a, FromJSVal b) => FromJSVal (a, b) Source # 
Instance details

Defined in GHCJS.Marshal

(FromJSVal a, FromJSVal b, FromJSVal c) => FromJSVal (a, b, c) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

fromJSVal :: JSVal -> IO (Maybe (a, b, c)) Source #

fromJSValUnchecked :: JSVal -> IO (a, b, c) Source #

fromJSValListOf :: JSVal -> IO (Maybe [(a, b, c)]) Source #

fromJSValUncheckedListOf :: JSVal -> IO [(a, b, c)] Source #

(FromJSVal a, FromJSVal b, FromJSVal c, FromJSVal d) => FromJSVal (a, b, c, d) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

fromJSVal :: JSVal -> IO (Maybe (a, b, c, d)) Source #

fromJSValUnchecked :: JSVal -> IO (a, b, c, d) Source #

fromJSValListOf :: JSVal -> IO (Maybe [(a, b, c, d)]) Source #

fromJSValUncheckedListOf :: JSVal -> IO [(a, b, c, d)] Source #

(FromJSVal a, FromJSVal b, FromJSVal c, FromJSVal d, FromJSVal e) => FromJSVal (a, b, c, d, e) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

fromJSVal :: JSVal -> IO (Maybe (a, b, c, d, e)) Source #

fromJSValUnchecked :: JSVal -> IO (a, b, c, d, e) Source #

fromJSValListOf :: JSVal -> IO (Maybe [(a, b, c, d, e)]) Source #

fromJSValUncheckedListOf :: JSVal -> IO [(a, b, c, d, e)] Source #

(FromJSVal a, FromJSVal b, FromJSVal c, FromJSVal d, FromJSVal e, FromJSVal f) => FromJSVal (a, b, c, d, e, f) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

fromJSVal :: JSVal -> IO (Maybe (a, b, c, d, e, f)) Source #

fromJSValUnchecked :: JSVal -> IO (a, b, c, d, e, f) Source #

fromJSValListOf :: JSVal -> IO (Maybe [(a, b, c, d, e, f)]) Source #

fromJSValUncheckedListOf :: JSVal -> IO [(a, b, c, d, e, f)] Source #

(FromJSVal a, FromJSVal b, FromJSVal c, FromJSVal d, FromJSVal e, FromJSVal f, FromJSVal g) => FromJSVal (a, b, c, d, e, f, g) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

fromJSVal :: JSVal -> IO (Maybe (a, b, c, d, e, f, g)) Source #

fromJSValUnchecked :: JSVal -> IO (a, b, c, d, e, f, g) Source #

fromJSValListOf :: JSVal -> IO (Maybe [(a, b, c, d, e, f, g)]) Source #

fromJSValUncheckedListOf :: JSVal -> IO [(a, b, c, d, e, f, g)] Source #

(FromJSVal a, FromJSVal b, FromJSVal c, FromJSVal d, FromJSVal e, FromJSVal f, FromJSVal g, FromJSVal h) => FromJSVal (a, b, c, d, e, f, g, h) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

fromJSVal :: JSVal -> IO (Maybe (a, b, c, d, e, f, g, h)) Source #

fromJSValUnchecked :: JSVal -> IO (a, b, c, d, e, f, g, h) Source #

fromJSValListOf :: JSVal -> IO (Maybe [(a, b, c, d, e, f, g, h)]) Source #

fromJSValUncheckedListOf :: JSVal -> IO [(a, b, c, d, e, f, g, h)] Source #

class ToJSVal a where Source #

Minimal complete definition

Nothing

Methods

toJSVal :: a -> IO JSVal Source #

toJSValListOf :: [a] -> IO JSVal Source #

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

Instances
ToJSVal Bool Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Char Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Double Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Float Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Int Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Int8 Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Int16 Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Int32 Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Word Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Word8 Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Word16 Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Word32 Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Text Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Value Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal a => ToJSVal [a] Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: [a] -> IO JSVal Source #

toJSValListOf :: [[a]] -> IO JSVal Source #

ToJSVal a => ToJSVal (Maybe a) Source # 
Instance details

Defined in GHCJS.Marshal

(ToJSVal a, ToJSVal b) => ToJSVal (a, b) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: (a, b) -> IO JSVal Source #

toJSValListOf :: [(a, b)] -> IO JSVal Source #

(ToJSVal a, ToJSVal b, ToJSVal c) => ToJSVal (a, b, c) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: (a, b, c) -> IO JSVal Source #

toJSValListOf :: [(a, b, c)] -> IO JSVal Source #

(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d) => ToJSVal (a, b, c, d) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: (a, b, c, d) -> IO JSVal Source #

toJSValListOf :: [(a, b, c, d)] -> IO JSVal Source #

(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d, ToJSVal e) => ToJSVal (a, b, c, d, e) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: (a, b, c, d, e) -> IO JSVal Source #

toJSValListOf :: [(a, b, c, d, e)] -> IO JSVal Source #

(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d, ToJSVal e, ToJSVal f) => ToJSVal (a, b, c, d, e, f) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: (a, b, c, d, e, f) -> IO JSVal Source #

toJSValListOf :: [(a, b, c, d, e, f)] -> IO JSVal Source #

(ToJSVal a, ToJSVal b, ToJSVal c, ToJSVal d, ToJSVal e, ToJSVal f, ToJSVal g) => ToJSVal (a, b, c, d, e, f, g) Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: (a, b, c, d, e, f, g) -> IO JSVal Source #

toJSValListOf :: [(a, b, c, d, e, f, g)] -> IO JSVal Source #

class PToJSVal a where Source #

Methods

pToJSVal :: a -> JSVal Source #

Instances
PToJSVal Bool Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Bool -> JSVal Source #

PToJSVal Char Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Char -> JSVal Source #

PToJSVal Double Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PToJSVal Float Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Float -> JSVal Source #

PToJSVal Int Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Int -> JSVal Source #

PToJSVal Int8 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Int8 -> JSVal Source #

PToJSVal Int16 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Int16 -> JSVal Source #

PToJSVal Int32 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Int32 -> JSVal Source #

PToJSVal Word Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Word -> JSVal Source #

PToJSVal Word8 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Word8 -> JSVal Source #

PToJSVal Word16 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PToJSVal Word32 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PToJSVal Text Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Text -> JSVal Source #

PToJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: JSVal -> JSVal Source #

PToJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PToJSVal [Char] Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: [Char] -> JSVal Source #

PToJSVal a => PToJSVal (Maybe a) Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: Maybe a -> JSVal Source #

class PFromJSVal a where Source #

Methods

pFromJSVal :: JSVal -> a Source #

Instances
PFromJSVal Bool Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Char Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Double Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Float Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Int Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pFromJSVal :: JSVal -> Int Source #

PFromJSVal Int8 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Int16 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Int32 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Word Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Word8 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Word16 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal Word32 Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal () Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pFromJSVal :: JSVal -> () Source #

PFromJSVal Text Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PFromJSVal [Char] Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pFromJSVal :: JSVal -> [Char] Source #

PFromJSVal a => PFromJSVal (Maybe a) Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pFromJSVal :: JSVal -> Maybe a Source #

data Purity Source #

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 Source # 
Instance details

Defined in GHCJS.Marshal.Internal

Methods

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

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

Data Purity Source # 
Instance details

Defined in GHCJS.Marshal.Internal

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 Source # 
Instance details

Defined in GHCJS.Marshal.Internal

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 #