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
26
26
, modifyMVarMasked_
27
27
, modifyMVarMasked
28
28
, tryReadMVar
29
+ , labelMVar
29
30
-- * Re-exports
30
31
, MonadMVar
31
32
) where
32
33
33
- import Control.Concurrent.Class.MonadMVar (MonadMVar )
34
+ import Control.Concurrent.Class.MonadMVar (MonadLabelledMVar , MonadMVar )
34
35
import Control.Concurrent.Class.MonadMVar qualified as Lazy
35
36
36
37
--
@@ -62,6 +63,9 @@ toLazyMVar = mvar
62
63
fromLazyMVar :: Lazy. MVar m a -> StrictMVar m a
63
64
fromLazyMVar = StrictMVar
64
65
66
+ labelMVar :: MonadLabelledMVar m => StrictMVar m a -> String -> m ()
67
+ labelMVar (StrictMVar m) = Lazy. labelMVar m
68
+
65
69
newEmptyMVar :: MonadMVar m => m (StrictMVar m a )
66
70
newEmptyMVar = fromLazyMVar <$> Lazy. newEmptyMVar
67
71
You can’t perform that action at this time.
0 commit comments