If debug output is on, show some SDoc on the screen along with a call stack when available.
Moduleghc-9.10.3GHC2021
GHC.Prelude
Custom GHC Prelude
This module serves as a replacement for the Prelude module and abstracts over differences between the bootstrapping GHC version, and may also provide a common default vocabulary.
- 10 values
- Packageghc-9.10.3
- Exports10
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourcePrelude.hs
module GHC.Prelude.Basic
If debug output is on, show some SDoc on the screen
pprTraceException desc x action runs action, printing a message
if it throws an exception.
pprTraceIt desc x is equivalent to pprTrace desc (ppr x) x
For when we want to show the user a non-fatal WARNING so that they can report a GHC bug, but don't want to panic.
pprTraceWith desc f x is equivalent to pprTrace desc (f x) x.
This allows you to print details from the returned value as well as from
ambient variables.
Just warn about an assertion failure, recording the given file and line number.