- module Text.PrettyPrint.HughesPJ
- class PrettyPrintable a where
- prettyPrint :: a -> Doc
- tabWidth :: Int
- tabIndent :: Doc -> Doc
- shortDouble :: Int -> Double -> Doc
- commaSeparatedInt :: Int -> Doc
- angles :: Doc -> Doc
- bars :: Doc -> Doc
- list :: [Doc] -> Doc
- dotSep :: [Doc] -> Doc
- speakNth :: Int -> Doc
- punctuateFront :: Doc -> [Doc] -> [Doc]
Documentation
module Text.PrettyPrint.HughesPJ
class PrettyPrintable a whereSource
prettyPrint :: a -> DocSource
shortDouble :: Int -> Double -> DocSource
Show a double d
printing only places
places after the decimal place.
commaSeparatedInt :: Int -> DocSource
Pretty prints an integer and separates it into groups of 3, separated by commas.
punctuateFront :: Doc -> [Doc] -> [Doc]Source