Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
waitSTM :: forall (m :: Type -> Type) a . MonadConc m => Async m a -> STM m aconcurrency Control.Concurrent.Classy.Async A version of wait that can be used inside a MonadSTM transaction.
data
IsSTM (m :: Type -> Type) aconcurrency Control.Monad.STM.Class A value of type IsSTM m a can only be constructed if m has a MonadSTM instance.
class (MonadCatch stm, MonadPlus stm) =>
MonadSTM (stm :: Type -> Type)concurrency Control.Monad.STM.Class MonadSTM is an abstraction over STM. This class does not provide any way to run transactions, rather each MonadConc has an associated MonadSTM from which it can atomically run a transaction.
catchSTM :: (MonadSTM stm, Exception e) => stm a -> (e -> stm a) -> stm aconcurrency Control.Monad.STM.Class Handling exceptions from throwSTM.
fromIsSTM :: MonadSTM m => IsSTM m a -> m aconcurrency Control.Monad.STM.Class Unwrap an IsSTM value.
throwSTM :: (MonadSTM stm, Exception e) => e -> stm aconcurrency Control.Monad.STM.Class Throw an exception. This aborts the transaction and propagates the exception.
toIsSTM :: MonadSTM m => m a -> IsSTM m aconcurrency Control.Monad.STM.Class Wrap an m a value inside an IsSTM if m has a MonadSTM instance.
bufferOutputSTM :: Outputable v => StdHandle -> v -> STM ()concurrent-output System.Console.Concurrent Adds a value to the output buffer for later display. Note that buffering large quantities of data this way will keep it resident in memory until it can be displayed. While outputConcurrent uses temp files if the buffer gets too big, this STM function cannot do so.
-
concurrent-output System.Console.Concurrent A STM action that waits for some buffered output to become available, and returns it. The function can select a subset of output when only some is desired; the fst part is returned and the snd is left in the buffer. This will prevent it from being displayed in the usual way, so you'll need to use emitOutputBuffer to display it yourself.
bufferOutputSTM :: Outputable v => StdHandle -> v -> STM ()concurrent-output System.Console.Concurrent.Internal Adds a value to the output buffer for later display. Note that buffering large quantities of data this way will keep it resident in memory until it can be displayed. While outputConcurrent uses temp files if the buffer gets too big, this STM function cannot do so.