We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e8aa1 commit 43f544bCopy full SHA for 43f544b
strict-stm/src/Control/Concurrent/Class/MonadSTM/Strict/TVar.hs
@@ -56,6 +56,11 @@ traceTVarIO :: MonadTraceSTM m
56
-> m ()
57
traceTVarIO StrictTVar {tvar} = Lazy.traceTVarIO tvar
58
59
+-- | Cast the monad if both use the same representation of `TVar`s.
60
+--
61
+-- This function is useful for monad transformers stacks if the `TVar` is used
62
+-- in different monad stacks.
63
64
castStrictTVar :: LazyTVar m ~ LazyTVar n
65
=> StrictTVar m a -> StrictTVar n a
66
castStrictTVar StrictTVar {tvar} = StrictTVar {tvar}
0 commit comments