Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newEventSource :: (MonadDOM m, ToJSString url) => url -> Maybe EventSourceInit -> m EventSource
- close :: MonadDOM m => EventSource -> m ()
- pattern CONNECTING :: forall a. (Eq a, Num a) => a
- pattern OPEN :: forall a. (Eq a, Num a) => a
- pattern CLOSED :: forall a. (Eq a, Num a) => a
- getUrl :: (MonadDOM m, FromJSString result) => EventSource -> m result
- getWithCredentials :: MonadDOM m => EventSource -> m Bool
- getReadyState :: MonadDOM m => EventSource -> m Word
- open :: EventName EventSource Event
- message :: EventName EventSource MessageEvent
- error :: EventName EventSource UIEvent
- newtype EventSource = EventSource {}
- gTypeEventSource :: JSM GType
Documentation
newEventSource :: (MonadDOM m, ToJSString url) => url -> Maybe EventSourceInit -> m EventSource Source #
close :: MonadDOM m => EventSource -> m () Source #
pattern CONNECTING :: forall a. (Eq a, Num a) => a Source #
getUrl :: (MonadDOM m, FromJSString result) => EventSource -> m result Source #
getWithCredentials :: MonadDOM m => EventSource -> m Bool Source #
getReadyState :: MonadDOM m => EventSource -> m Word Source #
newtype EventSource Source #
Functions for this inteface are in JSDOM.EventSource. Base interface functions are in:
Instances
PToJSVal EventSource Source # | |
Defined in JSDOM.Types pToJSVal :: EventSource -> JSVal # | |
PFromJSVal EventSource Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> EventSource # | |
ToJSVal EventSource Source # | |
Defined in JSDOM.Types toJSVal :: EventSource -> JSM JSVal # toJSValListOf :: [EventSource] -> JSM JSVal # | |
FromJSVal EventSource Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe EventSource) # fromJSValUnchecked :: JSVal -> JSM EventSource # fromJSValListOf :: JSVal -> JSM (Maybe [EventSource]) # fromJSValUncheckedListOf :: JSVal -> JSM [EventSource] # | |
MakeObject EventSource Source # | |
Defined in JSDOM.Types makeObject :: EventSource -> JSM Object # | |
IsEventTarget EventSource Source # | |
Defined in JSDOM.Types | |
IsGObject EventSource Source # | |
Defined in JSDOM.Types typeGType :: EventSource -> JSM GType |