Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
prettyShow :: Pretty a => a -> String #
defaultStyle :: Style #
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 #
showFreeText :: String -> Doc #
Pretty-print free-format text, ensuring that it is vertically aligned, and with blank lines replaced by dots for correct re-parsing.
indentWith :: Int #
the indentation used for pretty printing