Skip to content

Commit 9eff634

Browse files
fendorbgamari
authored andcommitted
Expose Backtraces internals from ghc-experimental
Additionally, expose the same API `base:Control.Exception.Backtrace` to make it easier to use as a drop-in replacement. (cherry picked from commit 6602472)
1 parent 4758f29 commit 9eff634

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

libraries/ghc-experimental/src/GHC/Exception/Backtrace/Experimental.hs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@ Portability : non-portable (GHC extensions)
99
1010
This module exposes experimental extensions to the Backtrace mechanism of GHC.
1111
-}
12-
module GHC.Exception.Backtrace.Experimental (
13-
-- * Collecting exception annotations (like backtraces)
14-
CollectExceptionAnnotationMechanism,
15-
getCollectExceptionAnnotationMechanism,
16-
setCollectExceptionAnnotation,
17-
collectExceptionAnnotation,
12+
module GHC.Exception.Backtrace.Experimental
13+
( -- * Backtrace mechanisms
14+
BacktraceMechanism(..)
15+
, getBacktraceMechanismState
16+
, setBacktraceMechanismState
17+
-- * Collecting backtraces
18+
, Backtraces(..),
19+
, displayBacktraces
20+
, collectBacktraces
21+
-- * Collecting exception annotations on throwing 'Exception's
22+
, CollectExceptionAnnotationMechanism
23+
, getCollectExceptionAnnotationMechanism
24+
, setCollectExceptionAnnotation
25+
, collectExceptionAnnotation
1826
) where
1927

2028
import GHC.Internal.Exception.Backtrace

0 commit comments

Comments
 (0)