arbor-monad-counter-2.0.0

Safe HaskellNone
LanguageHaskell2010

Arbor.Monad.Counter.Type

Documentation

newtype CounterValue Source #

Constructors

CounterValue 

Fields

Instances
Generic CounterValue Source # 
Instance details

Defined in Arbor.Monad.Counter.Type

Associated Types

type Rep CounterValue :: * -> * #

type Rep CounterValue Source # 
Instance details

Defined in Arbor.Monad.Counter.Type

type Rep CounterValue = D1 (MetaData "CounterValue" "Arbor.Monad.Counter.Type" "arbor-monad-counter-2.0.0-HKJ9Ts9HkU0KXouov1vWpx" True) (C1 (MetaCons "CounterValue" PrefixI True) (S1 (MetaSel (Just "var") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (TVar Int))))

data Counters Source #

Instances
Generic Counters Source # 
Instance details

Defined in Arbor.Monad.Counter.Type

Associated Types

type Rep Counters :: * -> * #

Methods

from :: Counters -> Rep Counters x #

to :: Rep Counters x -> Counters #

type Rep Counters Source # 
Instance details

Defined in Arbor.Monad.Counter.Type

type Rep Counters = D1 (MetaData "Counters" "Arbor.Monad.Counter.Type" "arbor-monad-counter-2.0.0-HKJ9Ts9HkU0KXouov1vWpx" False) (C1 (MetaCons "Counters" PrefixI True) (S1 (MetaSel (Just "current") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CountersMap) :*: (S1 (MetaSel (Just "previous") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CountersMap) :*: S1 (MetaSel (Just "total") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CountersMap))))

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

Minimal complete definition

getCounters