Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
exceptionWithCallStack :: (Exception e, HasCallStack) => e -> AnnotatedException eannotated-exception Control.Exception.Annotated Annotate the underlying exception with a CallStack.
throwWithCallStack :: (HasCallStack, MonadThrow m, Exception e) => e -> m aannotated-exception Control.Exception.Annotated Attaches the CallStack to the AnnotatedException that is thrown.
unCallStackAnnotation :: CallStackAnnotation -> [(String, SrcLoc)]annotated-exception Control.Exception.Annotated No documentation available.
-
annotated-exception Control.Exception.Annotated.UnliftIO Deprecated: You can just use CallStack directly now.
CallStackAnnotation :: [(String, SrcLoc)] -> CallStackAnnotationannotated-exception Control.Exception.Annotated.UnliftIO Deprecated: You can just use CallStack directly now.
addCallStackToException :: CallStack -> AnnotatedException exception -> AnnotatedException exceptionannotated-exception Control.Exception.Annotated.UnliftIO 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.UnliftIO 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.
checkpointCallStack :: (MonadUnliftIO m, HasCallStack) => m a -> m aannotated-exception Control.Exception.Annotated.UnliftIO Like checkpointCallStack, but uses MonadUnliftIO instead of MonadCatch.
checkpointCallStackWith :: (MonadUnliftIO m, HasCallStack) => [Annotation] -> m a -> m aannotated-exception Control.Exception.Annotated.UnliftIO Deprecated: As of annotated-exception-0.2.0.0, this is an alias for checkpointMany
exceptionWithCallStack :: (Exception e, HasCallStack) => e -> AnnotatedException eannotated-exception Control.Exception.Annotated.UnliftIO Annotate the underlying exception with a CallStack.