Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class PFromJSVal a where Source #
pFromJSVal :: JSVal -> a Source #
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 -> 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 #