Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
waitBothSTM :: Async a -> Async b -> STM (a, b)lifted-async Control.Concurrent.Async.Lifted.Safe A version of waitBoth that can be used inside an STM transaction.
waitCatchSTM :: Async a -> STM (Either SomeException a)lifted-async Control.Concurrent.Async.Lifted.Safe A version of waitCatch that can be used inside an STM transaction.
-
lifted-async Control.Concurrent.Async.Lifted.Safe A version of waitEitherCatch that can be used inside an STM transaction.
waitEitherSTM :: Async a -> Async b -> STM (Either a b)lifted-async Control.Concurrent.Async.Lifted.Safe A version of waitEither that can be used inside an STM transaction.
waitEitherSTM_ :: Async a -> Async b -> STM ()lifted-async Control.Concurrent.Async.Lifted.Safe A version of waitEither_ that can be used inside an STM transaction.
-
lifted-async Control.Concurrent.Async.Lifted.Safe A version of wait that can be used inside an STM transaction.
unsafeLastM :: (Monad m, Source r e) => Vector r e -> m emassiv Data.Massiv.Array.Unsafe No documentation available.
lastM :: (Source r e, MonadThrow m) => Vector r e -> m emassiv Data.Massiv.Vector O(1) - Get the last element of a Source vector. Related: last', unsnocM Throws Exceptions: SizeEmptyException
Examples
>>> lastM (Ix1 10 ... 10000000000000) 10000000000000 >>> lastM (Ix1 10 ... 10000000000000) :: Maybe Int Just 10000000000000 >>> either show (const "") $ lastM (fromList Seq [] :: Array P Ix1 Int) "SizeEmptyException: (Sz1 0) corresponds to an empty array"
-
protolude Protolude The thread is waiting to retry an STM transaction, but there are no other references to any TVars involved, so it can't ever continue.
BlockedIndefinitelyOnSTM :: BlockedIndefinitelyOnSTMprotolude Protolude No documentation available.