base-4.20.2.0: Core data structures and operations

Copyright | (c) The University of Glasgow 1998-2002
License | see libraries/base/LICENSE
Maintainer | cvs-ghc@haskell.org
Stability | internal
Portability | non-portable (GHC extensions)
Safe Haskell | None
Language | Haskell2010

Control.Exception.Annotation

Description

Exception annotations.

Synopsis

- data SomeExceptionAnnotation = ExceptionAnnotation a => SomeExceptionAnnotation a
- class Typeable a => ExceptionAnnotation a where
  - displayExceptionAnnotation :: a -> String

# Documentation

data SomeExceptionAnnotation Source #

Constructors

ExceptionAnnotation a => SomeExceptionAnnotation a |

class Typeable a => ExceptionAnnotation a where Source #

`ExceptionAnnotation`s are types which can decorate exceptions as `ExceptionContext`.

Since: base-4.20.0.0

Minimal complete definition

Nothing

Methods

displayExceptionAnnotation :: a -> String Source #

Render the annotation for display to the user.

default displayExceptionAnnotation :: Show a => a -> String Source #

#### Instances

Instances details

ExceptionAnnotation Backtraces |
Instance details Defined in GHC.Internal.Exception.Backtrace Methods displayExceptionAnnotation :: Backtraces -> String Source #