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"
)
]