Copyright | (c) Taku Terao 2017 |
---|---|
License | BSD3 |
Maintainer | autotaker@gmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Contextual tracing monad transformer. transformers-compatible.
- data TracerT c m a
- mapTracerT :: (m a -> n b) -> TracerT c m a -> TracerT c n b
- runTracerT :: ((c -> c) -> IO ()) -> TracerT c m a -> m a
- zoom :: ASetter' c c' -> TracerT c' m a -> TracerT c m a
- update :: MonadIO m => (c -> c) -> TracerT c m ()
- noTracerT :: Monad m => TracerT c m a -> m a
- ioTracerT :: MonadIO m => c -> TracerT c m a -> m (a, c)
Documentation
Contextual tracing monad transformer type. Tracing context c can be modified through this monad.
MonadRWS r w s m => MonadRWS r w s (TracerT c m) Source # | |
MonadWriter w m => MonadWriter w (TracerT c m) Source # | |
MonadState s m => MonadState s (TracerT c m) Source # | |
MonadReader r m => MonadReader r (TracerT c m) Source # | |
MonadError e m => MonadError e (TracerT c m) Source # | |
MonadIO m => MonadTrace c (TracerT c m) Source # | |
MonadTrans (TracerT c) Source # | |
Monad m => Monad (TracerT c m) Source # | |
Functor m => Functor (TracerT c m) Source # | |
MonadFix m => MonadFix (TracerT c m) Source # | |
Applicative m => Applicative (TracerT c m) Source # | |
MonadIO m => MonadIO (TracerT c m) Source # | |
MonadCont m => MonadCont (TracerT c m) Source # | |
mapTracerT :: (m a -> n b) -> TracerT c m a -> TracerT c n b Source #
Transform the base monad
runTracerT :: ((c -> c) -> IO ()) -> TracerT c m a -> m a Source #
Run the tracer monad with the specified update action.