-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Make your action to be observable and listen events from them. -- -- Make your action to be observable and listen events from them. @package observable @version 0.1.0 module Control.Observable -- | Mock used here as delimiter type Observable f a r = ContT r (Mock r f) a -- | Make continuation to be observable dispatch :: ContT r f a -> Observable f a r -- | Listen all event from action, forever subscribe :: Applicative f => Observable f a r -> (a -> f r) -> f r -- | Listen only first event, just once notify :: Observable f a r -> (a -> f r) -> f r -- | Make monadic action to be observable obs :: Monad f => f a -> Observable f a r