Safe Haskell | Safe-Inferred |
---|
Utilities for GHC's implicit call stacks feature.
Synopsis
Documentation
type Stack = Stack.HasCallStack Source #
Add this to the context of a function to give stack-aware functions access to its caller.
TODO use Stack.HasCallStack instead? Or not, I already have Derive.Stack and GHC.Stack.HasCallStack is pretty verbose.
Simplified stack with just the immediate caller.
caller :: Stack.CallStack -> Caller Source #
showCaller :: Caller -> Text Source #