Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Observable t a r = Continuation r (Capture r t) a
- observe :: Continuation r t a -> Observable t a r
- notify :: Observable t a r -> (a -> t r) -> t r
- follow :: Applicative t => Observable t a r -> (a -> t r) -> t r
- subscribe :: Applicative t => Observable t a r -> (a -> t r) -> t r
- watch :: Applicative t => Observable t a r -> (a -> t r) -> t r
- (.:~.) :: Observable t a r -> (a -> t r) -> t r
- (.:~*) :: Applicative t => Observable t a r -> (a -> t r) -> t r
- (*:~.) :: Applicative t => Observable t a r -> (a -> t r) -> t r
- (*:~*) :: Applicative t => Observable t a r -> (a -> t r) -> t r
Documentation
type Observable t a r = Continuation r (Capture r t) a Source #
observe :: Continuation r t a -> Observable t a r Source #
Make continuation observable
notify :: Observable t a r -> (a -> t r) -> t r Source #
Listen only first event, call back just once
follow :: Applicative t => Observable t a r -> (a -> t r) -> t r Source #
Listen only first event, call back forever_
subscribe :: Applicative t => Observable t a r -> (a -> t r) -> t r Source #
Listen all events from action, call back just once
watch :: Applicative t => Observable t a r -> (a -> t r) -> t r Source #
Listen all events from action, call back forever_
(.:~.) :: Observable t a r -> (a -> t r) -> t r Source #
Infix version of notify
(.:~*) :: Applicative t => Observable t a r -> (a -> t r) -> t r Source #
Infix version of follow
(*:~.) :: Applicative t => Observable t a r -> (a -> t r) -> t r Source #
Infix version of subscribe
(*:~*) :: Applicative t => Observable t a r -> (a -> t r) -> t r Source #
Infix version of watch