pprint -package:pretty-show

Pretty-print any data type that has a Show instance. If you've never seen MonadIO before, you can think of this function as having the following type signature:
pPrint :: Show a => a -> IO ()
This function will only use colors if it detects it's printing to a TTY. This function is for printing to a dark background. Use pPrintLightBg for printing to a terminal with a light background. Different colors are used. Prints to stdout. Use pHPrint to print to a different Handle.
>>> pPrint [Just (1, "hello")]
[ Just
( 1
, "hello"
)
]
Pretty print a generic value to stdout. This is particularly useful in the GHCi interactive environment.
Pretty print a showable value. An easier alias for pretty-simple's pPrint. This will print in colour if useColorOnStderrUnsafe is true.
The pprint function outputs a value of any type that is an instance of Pretty to the standard output device by calling ppr and adding a newline.
Render document using xml-conduit's pretty-printer.
Pretty print a value to the standard output.
Pretty printing of values. This class is similar to the Pretty class from the Prettyprinter package, but it also provides pretty printing with a given precedence level. We are able to derive instances of this class for algebraic data types. You may need the DerivingVia and DerivingStrategies extensions.
data X = ... deriving Generic deriving PPrint via (Default X)
The derived instance will pretty print the value with a format similar to the one used by ormolu.
The :print & friends commands
Alias for pPrint.
Similar to pPrint, but print in color regardless of whether the output goes to a TTY or not. See pPrint for an example of how to use this function.
Alias for pPrintForceColor.
Just like pPrintForceColorDarkBg, but for printing to a light background.
Just like pPrintDarkBg, but for printing to a light background.