Skip to content

CapillarySoftware/purescript-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Packages

No packages published