pretty -is:package

>>> pretty 1 <+> pretty "hello" <+> pretty 1.234
1 hello 1.234
>>> pretty 1 <+> pretty "hello" <+> pretty 1.234
1 hello 1.234
The type passed in must have a Show instance which produces a valid Haskell expression. Returns an empty String if this is not the case. This is not TH-specific, but useful in general.
Pretty-print a value
Pretty-print a single value.
Pretty Print a list of ASN.1 element
Prettify generated JSON documentation.
docs (pretty (Proxy :: Proxy MyAPI))
pretty shows a value using its Buildable instance.
Converts TOML type into Text (using defaultOptions). For example, this
TOML
{ tomlPairs  = HashMap.fromList
[("title", AnyValue $ Text "TOML example")]
, tomlTables = PrefixTree.fromList
[( "example" <| "owner"
, mempty
{ tomlPairs  = HashMap.fromList
[("name", AnyValue $ Text Kowainik)]
}
)]
, tomlTableArrays = mempty
}
will be translated to this
title = "TOML Example"

[example.owner]
name = "Kowainik"
The default pretty printer returning Strings Equivalent to
prettyStyle defaultStyle
Where defaultStyle = (mode=PageMode, lineLength=80, ribbonsPerLine=1.5)
pretty print the given value
Configuration to print to a pretty human readable CSS output.
For debugging purposes. Example:
>>> putStrLn $ pretty $ fromList ["put", "putStr", "putStrLn"]
["put"[""|"Str"[""|"Ln"]]]
Render and convert a document to a Doc.
Pretty-print a Value as shown in the example. Sections will nest complex values underneath with indentation and simple values will be rendered on the same line as their section.