| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHC.Stack.Decode.Experimental
Synopsis
- decodeStackWithIpe :: StackSnapshot -> IO [(StackFrame, Maybe InfoProv)]
- decodeStackWithFrameUnpack :: (StackFrameLocation -> IO a) -> StackSnapshot -> IO (StgInfoTable, [a])
- data StackEntry = StackEntry {}
- prettyStackFrameWithIpe :: (StackFrame, Maybe InfoProv) -> Maybe String
- prettyStackEntry :: StackEntry -> String
High-level stack decoders
decodeStackWithIpe :: StackSnapshot -> IO [(StackFrame, Maybe InfoProv)] Source #
Stack decoder helpers
decodeStackWithFrameUnpack :: (StackFrameLocation -> IO a) -> StackSnapshot -> IO (StgInfoTable, [a]) Source #
StackEntry
data StackEntry Source #
Representation for the source location where a return frame was pushed on the stack.
This happens every time when a case ... of scrutinee is evaluated.
Constructors
| StackEntry | |
Fields
| |
Instances
| Eq StackEntry Source # | |
Defined in GHC.Internal.Stack.Decode Methods (==) :: StackEntry -> StackEntry -> Bool Source # (/=) :: StackEntry -> StackEntry -> Bool Source # | |
| Show StackEntry Source # | |
Defined in GHC.Internal.Stack.Decode | |
Pretty printing
prettyStackFrameWithIpe :: (StackFrame, Maybe InfoProv) -> Maybe String Source #
prettyStackEntry :: StackEntry -> String Source #