Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype BehaviorWriterT t w m a = BehaviorWriterT {
- unBehaviorWriterT :: StateT [Behavior t w] m a
- runBehaviorWriterT :: (Monad m, Reflex t, Monoid w) => BehaviorWriterT t w m a -> m (a, Behavior t w)
- withBehaviorWriterT :: (Monoid w, Monoid w', Reflex t, MonadHold t m) => (w -> w') -> BehaviorWriterT t w m a -> BehaviorWriterT t w' m a
Documentation
newtype BehaviorWriterT t w m a Source #
A basic implementation of BehaviorWriter
.
BehaviorWriterT | |
|
Instances
runBehaviorWriterT :: (Monad m, Reflex t, Monoid w) => BehaviorWriterT t w m a -> m (a, Behavior t w) Source #
Run a BehaviorWriterT
action. The behavior writer output will be provided
along with the result of the action.
withBehaviorWriterT :: (Monoid w, Monoid w', Reflex t, MonadHold t m) => (w -> w') -> BehaviorWriterT t w m a -> BehaviorWriterT t w' m a Source #
Map a function over the output of a BehaviorWriterT
.