Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Counting a = Counting Int
- newtype Folding a f = Folding f
- counting :: forall m a. MonadIO m => Tracer m ( Counting a) -> m ( Tracer m a)
- fanning :: forall m a. (a -> Tracer m a) -> Tracer m a
- folding :: forall m f a. MonadIO m => (f -> a -> f) -> f -> Tracer m ( Folding a f) -> m ( Tracer m a)
Documentation
counting :: forall m a. MonadIO m => Tracer m ( Counting a) -> m ( Tracer m a) Source #
A stateful tracer transformer that substitutes messages with a monotonically incrementing occurence count.