ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

GHCJS.Marshal.Internal

Documentation

class FromJSVal a where Source

Minimal complete definition

Nothing

class ToJSVal a where Source

Minimal complete definition

Nothing

Methods

toJSVal :: a -> IO JSVal Source

toJSValListOf :: [a] -> IO JSVal Source

class PToJSVal a where Source

Methods

pToJSVal :: a -> JSVal 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

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