We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First provide MonadInspectMVar which is the analogy of MonadInspectSTM but for MVars.
MonadInspectMVar
MonadInspectSTM
MVar
class ( MonadMVar m , Monad (InspectMonadMVar m) ) => MonadInspectMVar m where type InspectMonadMVar m :: Type -> Type inspectMVar :: proxy m -> MVar m a -> InspectMonadMVar m (Maybe a)
Then provide a type class
class MonadTraceMVar m where traceMVarIO :: proxy -> MVar m a -> (Maybe (Maybe a) -> Maybe a -> InspectMonad m TraceValue) -> m ()
and two instances: MonadTraceMVar IO and MonadTraceMVar (IOSim s).
MonadTraceMVar IO
MonadTraceMVar (IOSim s)
Under this proposal, I also suggest we also rename the associated type family InspectMonad of MonadInspectSTM as InsepctMonadSTM.
InspectMonad
InsepctMonadSTM
The text was updated successfully, but these errors were encountered:
No branches or pull requests
First provide
MonadInspectMVar
which is the analogy ofMonadInspectSTM
but forMVar
s.Then provide a type class
and two instances:
MonadTraceMVar IO
andMonadTraceMVar (IOSim s)
.Under this proposal, I also suggest we also rename the associated type family
InspectMonad
ofMonadInspectSTM
asInsepctMonadSTM
.The text was updated successfully, but these errors were encountered: