pretty

>>> pretty 1 <+> pretty "hello" <+> pretty 1.234
1 hello 1.234
Pretty-printing library This package contains a pretty-printing library, a set of API's that provides a way to easily print out text in a consistent format of your choosing. This is useful for compilers and related tools. This library was originally designed by John Hughes's and has since been heavily modified by Simon Peyton Jones.
>>> 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.