Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
currentCallStack :: IO [String]ghc-internal GHC.Internal.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.
-
ghc-internal GHC.Internal.Stack The empty CallStack.
freezeCallStack :: CallStack -> CallStackghc-internal GHC.Internal.Stack Freeze a call-stack, preventing any further call-sites from being appended.
pushCallStack callSite (freezeCallStack callStack) = freezeCallStack callStack
fromCallSiteList :: [([Char], SrcLoc)] -> CallStackghc-internal GHC.Internal.Stack Convert a list of call-sites to a CallStack.
getCallStack :: CallStack -> [([Char], SrcLoc)]ghc-internal GHC.Internal.Stack Extract a list of call-sites from the CallStack. The list is ordered by most recent call.
popCallStack :: CallStack -> CallStackghc-internal GHC.Internal.Stack Pop the most recent call-site off the CallStack. This function, like pushCallStack, has no effect on a frozen CallStack.
prettyCallStack :: CallStack -> Stringghc-internal GHC.Internal.Stack Pretty print a CallStack.
prettyCallStackLines :: CallStack -> [String]ghc-internal GHC.Internal.Stack No documentation available.
pushCallStack :: ([Char], SrcLoc) -> CallStack -> CallStackghc-internal GHC.Internal.Stack Push a call-site onto the stack. This function has no effect on a frozen CallStack.
withFrozenCallStack :: HasCallStack => (HasCallStack => a) -> aghc-internal GHC.Internal.Stack Perform some computation without adding new entries to the CallStack.