Safe Haskell | None |
---|---|

Language | Haskell2010 |

# Documentation

class (Monad m, MonadIO m) => MonadCounters m Source #

## Instances

MonadCounters m => MonadCounters (MaybeT m) Source # | |

Defined in Arbor.Monad.Counter.Type getCounters :: MaybeT m Counters Source # | |

MonadCounters m => MonadCounters (ResourceT m) Source # | |

Defined in Arbor.Monad.Counter.Type getCounters :: ResourceT m Counters Source # | |

MonadCounters m => MonadCounters (IdentityT m) Source # | |

Defined in Arbor.Monad.Counter.Type getCounters :: IdentityT m Counters Source # | |

MonadCounters m => MonadCounters (ExceptT e m) Source # | |

Defined in Arbor.Monad.Counter.Type getCounters :: ExceptT e m Counters Source # | |

MonadCounters m => MonadCounters (StateT s m) Source # | |

Defined in Arbor.Monad.Counter.Type getCounters :: StateT s m Counters Source # | |

MonadCounters m => MonadCounters (ReaderT e m) Source # | |

Defined in Arbor.Monad.Counter.Type getCounters :: ReaderT e m Counters Source # |

getCounters :: MonadCounters m => m Counters Source #

incByKey :: MonadCounters m => CounterKey -> m () Source #

addByKey :: MonadCounters m => Int -> CounterKey -> m () Source #

setByKey :: MonadCounters m => Int -> CounterKey -> m () Source #

newCounters :: [CounterKey] -> IO Counters Source #

resetStats :: MonadCounters m => m () Source #

valuesByKeys :: MonadCounters m => [CounterKey] -> m [Int] Source #

extractValues :: CountersMap -> STM ([(CounterKey, Int)], [TVar Int]) Source #

newCountersMap :: [CounterKey] -> IO CountersMap Source #

deltaStats :: MonadCounters m => m CountersMap Source #

currentStats :: MonadCounters m => m CountersMap Source #