spoonutil-0.0.1: Spoon's utilities. Simple testing and nice looking error reporting.

Text.Pretty

Description

Pretty printing for spoons.

Synopsis

Documentation

class Pretty p whereSource

Pretty printer

Methods

pretty'Source

Arguments

:: p

To be pretty printed

-> Int

Tab depth

-> ShowS

Shown, waiting for a string to be joined to the end.

pspace :: Int -> ShowSSource

Space before a pretty printed line

pretty :: Pretty p => p -> StringSource

Pretty print!

pretty_list_nl' :: Pretty p => [p] -> Int -> ShowSSource

Pretty print a list, putting two newlines between each element. (Paragraph layout)

pretty_list_sp' :: Pretty p => [p] -> Int -> ShowSSource

Pretty print a list, putting spaces between each element.

pretty_list' :: Pretty p => [p] -> Int -> ShowSSource

Pretty print a list