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.

  1. callStack :: HasCallStack => CallStack

    base GHC.Stack

    Return the current CallStack. Does *not* include the call-site of callStack.

  2. 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.

  3. emptyCallStack :: CallStack

    base GHC.Stack

    The empty CallStack.

  4. freezeCallStack :: CallStack -> CallStack

    base GHC.Stack

    Freeze a call-stack, preventing any further call-sites from being appended.

    pushCallStack callSite (freezeCallStack callStack) = freezeCallStack callStack
    

  5. fromCallSiteList :: [([Char], SrcLoc)] -> CallStack

    base GHC.Stack

    Convert a list of call-sites to a CallStack.

  6. getCallStack :: CallStack -> [([Char], SrcLoc)]

    base GHC.Stack

    Extract a list of call-sites from the CallStack. The list is ordered by most recent call.

  7. popCallStack :: CallStack -> CallStack

    base GHC.Stack

    Pop the most recent call-site off the CallStack. This function, like pushCallStack, has no effect on a frozen CallStack.

  8. prettyCallStack :: CallStack -> String

    base GHC.Stack

    Pretty print a CallStack.

  9. pushCallStack :: ([Char], SrcLoc) -> CallStack -> CallStack

    base GHC.Stack

    Push a call-site onto the stack. This function has no effect on a frozen CallStack.

  10. withFrozenCallStack :: HasCallStack => (HasCallStack => a) -> a

    base GHC.Stack

    Perform some computation without adding new entries to the CallStack.

Page 191 of many | Previous | Next