StackAnnotations are types which can be pushed onto the call stack
as the payload of AnnFrame stack frames.
Methods
displayStackAnnotation :: a -> StringDisplay a human readable string for the StackAnnotation.
This is supposed to be the long version of displayStackAnnotationShort and may contain a source location.
If not provided, displayStackAnnotation is derived from stackAnnotationSourceLocation and displayStackAnnotationShort.
stackAnnotationSourceLocation :: a -> Maybe SrcLocGet the SrcLoc of the given StackAnnotation.
This is optional, SrcLoc are not strictly required for StackAnnotation, but it is still heavily encouarged to provide a SrcLoc for better IPE backtraces.
displayStackAnnotationShort :: a -> StringThe description of the StackAnnotation without any metadata such as source locations.
Pefer implementing displayStackAnnotationShort over displayStackAnnotation.
Instances1StackAnnotation
StackAnnotation SomeStackAnnotationDefined in ghc-internal-10.0.0 · GHC.Internal.Stack.Annotation