pretty-ghci-0.2.0.0: Functionality for beautifying GHCi

Safe HaskellNone
LanguageHaskell2010

Text.PrettyPrint.GHCi.Value

Synopsis

Documentation

prettyPrintValue :: Bool -> String -> IO () Source #

Given a Show-ed value, print that value out to the terminal, add helpful indentation and colours whenever possible. If a structured value cannot be parsed out, this falls back on print.

The Bool is to enable a slower but potentially smarter layout algorithm.

value2Doc :: String -> Doc AnsiStyle Source #

Parse a shown value into a pretty Doc. Can throw an error on outputs that could not be parsed properly, but should not throw errors for inputs which are the outputs of show from derived Show instances.

data ValuePrintConf Source #

Options for how to colour the terminal output

Constructors

ValuePrintConf 

Fields

defaultValueConf :: ValuePrintConf Source #

A Good Enough colour scheme