Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Pretty a where
- prettyShow :: Pretty a => a -> String
- defaultStyle :: Style
- flatStyle :: Style
- showFilePath :: FilePath -> Doc
- showToken :: String -> Doc
- showFreeText :: String -> Doc
- indentWith :: Int
- type Separator = [Doc] -> Doc
Documentation
Instances
prettyShow :: Pretty a => a -> String Source #
defaultStyle :: Style Source #
The default rendering style used in Cabal for console output. It has a fixed page width and adds line breaks automatically.
Utilities
showFilePath :: FilePath -> Doc Source #
showFreeText :: String -> Doc Source #
Pretty-print free-format text, ensuring that it is vertically aligned, and with blank lines replaced by dots for correct re-parsing.
indentWith :: Int Source #
the indentation used for pretty printing