hPrint package:pretty-simple

Similar to pPrint, but take a Handle to print to.
>>> pHPrint stdout [Just (1, "hello")]
[ Just
( 1
, "hello"
)
]
Alias for pHPrint.
Similar to pPrintForceColor, but take a Handle to print to. See pHPrint for an example of how to use this function.
Alias for pHPrintForceColor.
Just like pHPrintForceColorDarkBg, but for printing to a light background.
Just like pHPrintDarkBg, but for printing to a light background.
Like pPrintNoColor, but take a Handle to determine where to print to.
>>> pHPrintNoColor stdout $ Just ["hello", "bye"]
Just
[ "hello"
, "bye"
]
Similar to pPrintOpt, but take a Handle to determine where to print to.
Similar to pHPrintString, but take a Handle to print to.
>>> pHPrintString stdout $ show [ Just (1, "hello"), Nothing ]
[ Just
( 1
, "hello"
)
, Nothing
]
Alias for pHPrintString.
Similar to pHPrintString, but print in color regardless of whether the output goes to a TTY or not. See pHPrintString for an example of how to use this function.
Just like pHPrintStringForceColorDarkBg, but for printing to a light background.
Just like pHPrintStringDarkBg, but for printing to a light background.
Like pPrintStringNoColor, but take a Handle to determine where to print to.
>>> pHPrintStringNoColor stdout $ show $ Just ["hello", "bye"]
Just
[ "hello"
, "bye"
]
Similar to pPrintStringOpt, but take a Handle to determine where to print to.
>>> let foo = show (1, (2, "hello", 3))

>>> pHPrintStringOpt CheckColorTty defaultOutputOptionsNoColor stdout foo
( 1
,
( 2
, "hello"
, 3
)
)