File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
io-classes/strict-mvar/src/Control/Concurrent/Class/MonadMVar Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,12 @@ module Control.Concurrent.Class.MonadMVar.Strict
2626 , modifyMVarMasked_
2727 , modifyMVarMasked
2828 , tryReadMVar
29+ , labelMVar
2930 -- * Re-exports
3031 , MonadMVar
3132 ) where
3233
33- import Control.Concurrent.Class.MonadMVar (MonadMVar )
34+ import Control.Concurrent.Class.MonadMVar (MonadMVar , MonadLabelledMVar )
3435import Control.Concurrent.Class.MonadMVar qualified as Lazy
3536
3637--
@@ -62,6 +63,9 @@ toLazyMVar = mvar
6263fromLazyMVar :: Lazy. MVar m a -> StrictMVar m a
6364fromLazyMVar = StrictMVar
6465
66+ labelMVar :: MonadLabelledMVar m => StrictMVar m a -> String -> m ()
67+ labelMVar (StrictMVar m) = Lazy. labelMVar m
68+
6569newEmptyMVar :: MonadMVar m => m (StrictMVar m a )
6670newEmptyMVar = fromLazyMVar <$> Lazy. newEmptyMVar
6771
You can’t perform that action at this time.
0 commit comments