ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

GHCJS.Marshal

Contents

Documentation

class FromJSVal a where Source #

Methods

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
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 #

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

Methods

toJSVal :: Int8 -> IO JSVal Source #

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

ToJSVal Int16 Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: Int16 -> IO JSVal Source #

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

ToJSVal Int32 Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: Int32 -> IO JSVal Source #

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

ToJSVal Word Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal Word8 Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: Word8 -> IO JSVal Source #

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

ToJSVal Word16 Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: Word16 -> IO JSVal Source #

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

ToJSVal Word32 Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: Word32 -> IO JSVal Source #

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

ToJSVal Text Source # 
Instance details

Defined in GHCJS.Marshal

Methods

toJSVal :: Text -> IO JSVal Source #

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

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 #

Orphan instances

FromJSVal Bool Source # 
Instance details

FromJSVal Char Source # 
Instance details

FromJSVal Double Source # 
Instance details

FromJSVal Float Source # 
Instance details

FromJSVal Int Source # 
Instance details

FromJSVal Int8 Source # 
Instance details

FromJSVal Int16 Source # 
Instance details

FromJSVal Int32 Source # 
Instance details

FromJSVal Word Source # 
Instance details

FromJSVal Word8 Source # 
Instance details

FromJSVal Word16 Source # 
Instance details

FromJSVal Word32 Source # 
Instance details

FromJSVal () Source # 
Instance details

FromJSVal Text Source # 
Instance details

FromJSVal Value Source # 
Instance details

FromJSVal JSVal Source # 
Instance details

FromJSVal JSString Source # 
Instance details

ToJSVal Bool Source # 
Instance details

ToJSVal Char Source # 
Instance details

ToJSVal Double Source # 
Instance details

ToJSVal Float Source # 
Instance details

ToJSVal Int Source # 
Instance details

ToJSVal Int8 Source # 
Instance details

Methods

toJSVal :: Int8 -> IO JSVal Source #

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

ToJSVal Int16 Source # 
Instance details

Methods

toJSVal :: Int16 -> IO JSVal Source #

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

ToJSVal Int32 Source # 
Instance details

Methods

toJSVal :: Int32 -> IO JSVal Source #

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

ToJSVal Word Source # 
Instance details

ToJSVal Word8 Source # 
Instance details

Methods

toJSVal :: Word8 -> IO JSVal Source #

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

ToJSVal Word16 Source # 
Instance details

Methods

toJSVal :: Word16 -> IO JSVal Source #

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

ToJSVal Word32 Source # 
Instance details

Methods

toJSVal :: Word32 -> IO JSVal Source #

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

ToJSVal Text Source # 
Instance details

Methods

toJSVal :: Text -> IO JSVal Source #

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

ToJSVal Value Source # 
Instance details

ToJSVal JSVal Source # 
Instance details

ToJSVal JSString Source # 
Instance details

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

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

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

Methods

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

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

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

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

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

Methods

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

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

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

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 #

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

Methods

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

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

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

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 #

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

Methods

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

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

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

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 #

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

Methods

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

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

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

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 #

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

Methods

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

toJSValListOf :: [(a, b, c, d, e, f)] -> IO JSVal 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

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 #

(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

Methods

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

toJSValListOf :: [(a, b, c, d, e, f, g)] -> IO JSVal 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

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 #