data EventListener :: * -> # ! -> *A boxed function that can be used as an event listener. This is necessary due to the underling implementation of Eff functions.
eventListener :: forall eff a ev. (ev -> Eff eff a) -> EventListener ev effCreates an EventListener from a normal PureScript Eff function.
addEventListener :: forall eff ev. EventType -> EventListener ev (dom :: DOM | eff) -> Boolean -> EventTarget -> Eff (dom :: DOM | eff) UnitAdds a listener to an event target. The boolean argument indicates whether the listener should be added for the "capture" phase.
removeEventListener :: forall eff ev. EventType -> EventListener ev (dom :: DOM | eff) -> Boolean -> EventTarget -> Eff (dom :: DOM | eff) UnitRemoves a listener to an event target. The boolean argument indicates whether the listener should be removed for the "capture" phase.
dispatchEvent :: forall eff. Event -> EventTarget -> Eff (dom :: DOM, err :: EXCEPTION | eff) BooleanDispatches an event from an event target.