Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readChanOnException :: UnagiPrim a => OutChan a -> (IO a -> IO ()) -> IO aunagi-chan Control.Concurrent.Chan.Unagi.Unboxed Like readChan but allows recovery of the queue element which would have been read, in the case that an async exception is raised during the read. To be precise exceptions are raised, and the handler run, only when readChanOnException is blocking. The second argument is a handler that takes a blocking IO action returning the element, and performs some recovery action. When the handler is called, the passed IO a is the only way to access the element.
module Control.Exception.
ChainedException Exception that keeps the stack of error locations.
-
melf Control.Exception.ChainedException Exception that keeps track of error locations
ChainedException :: String -> Loc -> ChainedExceptionNext -> ChainedExceptionmelf Control.Exception.ChainedException No documentation available.
-
melf Control.Exception.ChainedException Structure to organize the stack of exceptions with locations
exnOnException :: forall e m a . Monad m => Exn m e -> m a -> m () -> m amonadology Control.Monad.Ology.Data.Exn No documentation available.
class Monad m =>
MonadException (m :: Type -> Type)monadology Control.Monad.Ology.General.Exception Pretty much every monad can be made an instance of this class.
-
monadology Control.Monad.Ology.General.Exception The SomeException type is the root of the exception type hierarchy. When an exception of type e is thrown, behind the scenes it is encapsulated in a SomeException.
onException :: MonadException m => m a -> m () -> m amonadology Control.Monad.Ology.General.Exception Run the handler on exception. Does not mask asynchronous exceptions on the handler.
-
monadology Control.Monad.Ology.General.Throw Exceptions that occur in the IO monad. An IOException records a more specific error type, a descriptive string and maybe the handle that was used when the error was flagged.