Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Documentation

Build Status Bower version Dependency Status

Module Control.Reactive.Event

Types

data Event d where
  Event :: EventName -> { detail :: {  | d }, cancelable :: Boolean, bubbles :: Boolean } -> Event

type EventName  = String

Values

newEvent :: forall d. EventName -> {  | d } -> Event d

eventDMap :: forall a b. ({  | a } -> {  | b }) -> Event a -> Event b

eventNMap :: forall a. (EventName -> EventName) -> Event a -> Event a

unwrapEventDetail :: forall d. Event d -> { | d}

unwrapEventName :: forall d. Event d -> EventName  

subscribeEvented :: forall a d eff. EventName -> (Event d -> EffR eff a) -> EffR eff Subscription

subscribeEventedOn :: forall a d o eff. EventName -> (Event d -> EffR eff a) -> o -> EffR eff Subscription

emit :: forall d eff. Event d -> EffR eff Context

emitOn :: forall d o eff. Event d -> o -> EffR eff o 

unsubscribe :: forall eff. Subscription -> Eff (reactive :: Reactive | eff) Unit

About

Custom Browser Events

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages