Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CallId = MkCallId Int
- class HasCallIdCounter env where
- getCallIdCounter :: env -> CounterVar CallId
- takeNext :: (MonadReader env m, HasCallIdCounter env, MonadUnliftIO m) => m CallId
- newCallIdCounter :: MonadIO m => m (CounterVar CallId)
Documentation
An identifier value every command send by call
s.
MkCallId Int |
Instances
Eq CallId # | |
Ord CallId # | |
Show CallId # | |
HasCallIdCounter (CounterVar CallId) # | |
Defined in UnliftIO.MessageBox.Util.CallId |
class HasCallIdCounter env where #
Class of environment records containing a CounterVar
for CallId
s.
getCallIdCounter :: env -> CounterVar CallId #
Instances
HasCallIdCounter (CounterVar CallId) # | |
Defined in UnliftIO.MessageBox.Util.CallId |
takeNext :: (MonadReader env m, HasCallIdCounter env, MonadUnliftIO m) => m CallId #
Increment and get a new CallId
.
newCallIdCounter :: MonadIO m => m (CounterVar CallId) #
Create a new CallId
CounterVar
.