Module
Control.Observable.Class
- Package
- purescript-observable-classy
- Repository
- Risto-Stevcev/purescript-observable-classy
#Observable Source
class Observable o where
Purescript doesn't support polyvariadic functions, so of
(make
) takes a
single argument instead . If more values need to be supplied, use
fromFoldable
and provide an array of values.
In the spec, from
can take an Observable or an Iterable. This is split
into two functions fromFoldable
and fromObservable
. All Iterable
structures are Foldable, so Foldable is used instead
Members
subscribe :: forall e a. o a -> Listeners a -> Eff e Subscription
make :: forall e a. a -> Eff e (o a)
fromIterable :: forall f e a. Iterable (f a) a => f a -> Eff e (o a)
fromObservable :: forall e a. o a -> Eff e (o a)
- Modules
- Control.
Observable. Class