Module

Wire.Event

Package
purescript-wire
Repository
robertdp/purescript-wire

#create Source

create :: forall a. Effect { event :: Event a, push :: a -> Effect Unit }

#makeEvent Source

makeEvent :: forall a. ((a -> Effect Unit) -> Effect (Effect Unit)) -> Event a

#subscribe Source

subscribe :: forall b a. Event a -> (a -> Effect b) -> Effect (Effect Unit)

#filter Source

filter :: forall a. (a -> Boolean) -> Event a -> Event a

#fold Source

fold :: forall b a. (b -> a -> b) -> b -> Event a -> Event b

#share Source

share :: forall a. Event a -> Effect (Event a)

#distinct Source

distinct :: forall a. Eq a => Event a -> Event a

#bufferUntil Source

bufferUntil :: forall a b. Event a -> Event b -> Event (Array a)

#fromFoldable Source

fromFoldable :: forall f a. Foldable f => f a -> Event a

#range Source

range :: Int -> Int -> Event Int