Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newMessageEvent :: (MonadDOM m, ToJSString type') => type' -> Maybe MessageEventInit -> m MessageEvent
- initMessageEvent :: (MonadDOM m, ToJSString type', ToJSVal data', ToJSString originArg, ToJSString lastEventId, IsMessageEventSource source) => MessageEvent -> type' -> Bool -> Bool -> Maybe data' -> Maybe originArg -> Maybe lastEventId -> Maybe source -> [MessagePort] -> m ()
- getOrigin :: (MonadDOM m, FromJSString result) => MessageEvent -> m result
- getLastEventId :: (MonadDOM m, FromJSString result) => MessageEvent -> m result
- getSource :: MonadDOM m => MessageEvent -> m (Maybe EventTarget)
- getSourceUnsafe :: (MonadDOM m, HasCallStack) => MessageEvent -> m EventTarget
- getSourceUnchecked :: MonadDOM m => MessageEvent -> m EventTarget
- getData :: MonadDOM m => MessageEvent -> m JSVal
- getPorts :: MonadDOM m => MessageEvent -> m [MessagePort]
- newtype MessageEvent = MessageEvent {}
- gTypeMessageEvent :: JSM GType
Documentation
newMessageEvent :: (MonadDOM m, ToJSString type') => type' -> Maybe MessageEventInit -> m MessageEvent Source #
initMessageEvent :: (MonadDOM m, ToJSString type', ToJSVal data', ToJSString originArg, ToJSString lastEventId, IsMessageEventSource source) => MessageEvent -> type' -> Bool -> Bool -> Maybe data' -> Maybe originArg -> Maybe lastEventId -> Maybe source -> [MessagePort] -> m () Source #
getOrigin :: (MonadDOM m, FromJSString result) => MessageEvent -> m result Source #
getLastEventId :: (MonadDOM m, FromJSString result) => MessageEvent -> m result Source #
getSource :: MonadDOM m => MessageEvent -> m (Maybe EventTarget) Source #
getSourceUnsafe :: (MonadDOM m, HasCallStack) => MessageEvent -> m EventTarget Source #
getSourceUnchecked :: MonadDOM m => MessageEvent -> m EventTarget Source #
getPorts :: MonadDOM m => MessageEvent -> m [MessagePort] Source #
newtype MessageEvent Source #
Functions for this inteface are in JSDOM.MessageEvent. Base interface functions are in:
Instances
PToJSVal MessageEvent Source # | |
Defined in JSDOM.Types pToJSVal :: MessageEvent -> JSVal # | |
PFromJSVal MessageEvent Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> MessageEvent # | |
ToJSVal MessageEvent Source # | |
Defined in JSDOM.Types toJSVal :: MessageEvent -> JSM JSVal # toJSValListOf :: [MessageEvent] -> JSM JSVal # | |
FromJSVal MessageEvent Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe MessageEvent) # fromJSValUnchecked :: JSVal -> JSM MessageEvent # fromJSValListOf :: JSVal -> JSM (Maybe [MessageEvent]) # fromJSValUncheckedListOf :: JSVal -> JSM [MessageEvent] # | |
MakeObject MessageEvent Source # | |
Defined in JSDOM.Types makeObject :: MessageEvent -> JSM Object # | |
IsEvent MessageEvent Source # | |
Defined in JSDOM.Types | |
IsGObject MessageEvent Source # | |
Defined in JSDOM.Types typeGType :: MessageEvent -> JSM GType |