Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
callStack :: HasCallStack => CallStackbase GHC.Stack Return the current CallStack. Does *not* include the call-site of callStack.
currentCallStack :: IO [String]base GHC.Stack Returns a [String] representing the current call stack. This can be useful for debugging. The implementation uses the call-stack simulation maintained by the profiler, so it only works if the program was compiled with -prof and contains suitable SCC annotations (e.g. by using -fprof-auto). Otherwise, the list returned is likely to be empty or uninformative.
-
base GHC.Stack The empty CallStack.
freezeCallStack :: CallStack -> CallStackbase GHC.Stack Freeze a call-stack, preventing any further call-sites from being appended.
pushCallStack callSite (freezeCallStack callStack) = freezeCallStack callStack
fromCallSiteList :: [([Char], SrcLoc)] -> CallStackbase GHC.Stack Convert a list of call-sites to a CallStack.
getCallStack :: CallStack -> [([Char], SrcLoc)]base GHC.Stack Extract a list of call-sites from the CallStack. The list is ordered by most recent call.
popCallStack :: CallStack -> CallStackbase GHC.Stack Pop the most recent call-site off the CallStack. This function, like pushCallStack, has no effect on a frozen CallStack.
prettyCallStack :: CallStack -> Stringbase GHC.Stack Pretty print a CallStack.
pushCallStack :: ([Char], SrcLoc) -> CallStack -> CallStackbase GHC.Stack Push a call-site onto the stack. This function has no effect on a frozen CallStack.
withFrozenCallStack :: HasCallStack => (HasCallStack => a) -> abase GHC.Stack Perform some computation without adding new entries to the CallStack.