Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- data Doc
- class Pretty a
- pretty :: Pretty a => a -> Doc
- show :: Show a => a -> String
- putDoc :: Doc -> IO ()
- hPutDoc :: Handle -> Doc -> IO ()
- (<>) :: Doc -> Doc -> Doc
- (<+>) :: Doc -> Doc -> Doc
- (</>) :: Doc -> Doc -> Doc
- (<//>) :: Doc -> Doc -> Doc
- (<$>) :: Doc -> Doc -> Doc
- (<$$>) :: Doc -> Doc -> Doc
- sep :: [Doc] -> Doc
- fillSep :: [Doc] -> Doc
- hsep :: [Doc] -> Doc
- vsep :: [Doc] -> Doc
- cat :: [Doc] -> Doc
- fillCat :: [Doc] -> Doc
- hcat :: [Doc] -> Doc
- vcat :: [Doc] -> Doc
- punctuate :: Doc -> [Doc] -> [Doc]
- align :: Doc -> Doc
- hang :: Int -> Doc -> Doc
- indent :: Int -> Doc -> Doc
- fill :: Int -> Doc -> Doc
- fillBreak :: Int -> Doc -> Doc
- list :: [Doc] -> Doc
- tupled :: [Doc] -> Doc
- semiBraces :: [Doc] -> Doc
- encloseSep :: Doc -> Doc -> Doc -> [Doc] -> Doc
- angles :: Doc -> Doc
- langle :: Doc
- rangle :: Doc
- parens :: Doc -> Doc
- lparen :: Doc
- rparen :: Doc
- braces :: Doc -> Doc
- lbrace :: Doc
- rbrace :: Doc
- brackets :: Doc -> Doc
- lbracket :: Doc
- rbracket :: Doc
- dquotes :: Doc -> Doc
- dquote :: Doc
- squotes :: Doc -> Doc
- squote :: Doc
- comma :: Doc
- space :: Doc
- dot :: Doc
- backslash :: Doc
- semi :: Doc
- colon :: Doc
- equals :: Doc
- string :: [Char] -> Doc
- bool :: Bool -> Doc
- int :: Int -> Doc
- integer :: Integer -> Doc
- float :: Float -> Doc
- double :: Double -> Doc
- rational :: Rational -> Doc
- softline :: Doc
- softbreak :: Doc
- empty :: Doc
- char :: Char -> Doc
- text :: [Char] -> Doc
- line :: Doc
- linebreak :: Doc
- nest :: Int -> Doc -> Doc
- group :: Doc -> Doc
- column :: (Int -> Doc) -> Doc
- nesting :: (Int -> Doc) -> Doc
- width :: Doc -> (Int -> Doc) -> Doc
- data SimpleDoc
- renderPretty :: Float -> Int -> Doc -> SimpleDoc
- renderCompact :: Doc -> SimpleDoc
- displayS :: SimpleDoc -> ShowS
- displayIO :: Handle -> SimpleDoc -> IO ()
Documentation
Instances
Pretty Bool Source # | |
Pretty Char Source # | |
Pretty Double Source # | |
Pretty Float Source # | |
Pretty Int Source # | |
Pretty Integer Source # | |
Pretty () Source # | |
Pretty Doc Source # | |
Pretty a => Pretty [a] Source # | |
Pretty a => Pretty (Maybe a) Source # | |
(Pretty a, Pretty b) => Pretty (a, b) Source # | |
(Pretty a, Pretty b, Pretty c) => Pretty (a, b, c) Source # | |
semiBraces :: [Doc] -> Doc Source #
renderCompact :: Doc -> SimpleDoc Source #