Stack package:text-show

TextShow instances for CallStack and SrcLoc values. Since: 3.0.1
Like tracet but additionally prints a call stack if one is available. In the current GHC implementation, the call stack is only availble if the program was compiled with -prof; otherwise tracetStack behaves exactly like tracet. Entries in the call stack correspond to SCC annotations, so it is a good idea to use -fprof-auto or -fprof-auto-calls to add SCC annotations automatically. Since: 2
Like tracetStack but accepts a lazy Text argument. Since: 2