Hoogle Search
Within LTS Haskell 24.46 (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.
data
AnnotatedException exceptionannotated-exception Control.Exception.Annotated The AnnotatedException type wraps an exception with a [Annotation]. This can provide a sort of a manual stack trace with programmer provided data.
AnnotatedException :: [Annotation] -> exception -> AnnotatedException exceptionannotated-exception Control.Exception.Annotated No documentation available.
-
annotated-exception Control.Exception.Annotated 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.
SomeException :: e -> SomeExceptionannotated-exception Control.Exception.Annotated No documentation available.
addCallStackToException :: CallStack -> AnnotatedException exception -> AnnotatedException exceptionannotated-exception Control.Exception.Annotated Adds a CallStack to the given AnnotatedException. This function will search through the existing annotations, and it will not add a second CallStack to the list. Instead, it will append the contents of the given CallStack to the existing one. This mirrors the behavior of the way HasCallStack actually works.
annotatedExceptionCallStack :: AnnotatedException exception -> Maybe CallStackannotated-exception Control.Exception.Annotated Retrieves the CallStack from an AnnotatedException if one is present. The library maintains an internal check that a single CallStack is present in the list, so this only returns the first one found. If you have added a CallStack directly to the [Annotation], then this will likely break.
displayException :: Exception e => e -> Stringannotated-exception Control.Exception.Annotated Render this exception value in a human-friendly manner. Default implementation: show.
fromException :: Exception e => SomeException -> Maybe eannotated-exception Control.Exception.Annotated No documentation available.
toException :: Exception e => e -> SomeExceptionannotated-exception Control.Exception.Annotated toException should produce a SomeException with no attached ExceptionContext.