Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Functions for working with Topic
s built around monad
transformers. These make it possible to, for example, repeat a
stateful action to produce a Topic'
s values.
- runTopicState :: Monad m => Topic (StateT s m) a -> s -> Topic m a
- runTopicState' :: Monad m => Topic (StateT s m) a -> s -> Topic m a
- runTopicReader :: (Functor m, Monad m) => Topic (ReaderT r m) a -> r -> Topic m a
- liftMap :: (MonadTrans t, Monad m, Monad (t m)) => (a -> t m b) -> Topic m a -> Topic (t m) b
Documentation
runTopicState :: Monad m => Topic (StateT s m) a -> s -> Topic m a Source
Run a Topic
built around a lazy
monad using a
given initial state.StateT
s
runTopicState' :: Monad m => Topic (StateT s m) a -> s -> Topic m a Source
Run a Topic
build around a strict
monad using a
given initial state.StateT
s