Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype DynamicWriterT t w m a = DynamicWriterT {
- unDynamicWriterT :: StateT [Dynamic t w] m a
- runDynamicWriterT :: (MonadFix m, Reflex t, Monoid w) => DynamicWriterT t w m a -> m (a, Dynamic t w)
- withDynamicWriterT :: (Monoid w, Monoid w', Reflex t, MonadHold t m, MonadFix m) => (w -> w') -> DynamicWriterT t w m a -> DynamicWriterT t w' m a
Documentation
newtype DynamicWriterT t w m a Source #
A basic implementation of DynamicWriter
.
DynamicWriterT | |
|
Instances
runDynamicWriterT :: (MonadFix m, Reflex t, Monoid w) => DynamicWriterT t w m a -> m (a, Dynamic t w) Source #
Run a DynamicWriterT
action. The dynamic writer output will be provided
along with the result of the action.
withDynamicWriterT :: (Monoid w, Monoid w', Reflex t, MonadHold t m, MonadFix m) => (w -> w') -> DynamicWriterT t w m a -> DynamicWriterT t w' m a Source #
Map a function over the output of a DynamicWriterT
.