Safe Haskell | Safe-Infered |
---|
- data Doc
- data Mode
- = PageMode
- | ZigZagMode
- | LeftMode
- | OneLineMode
- data TextDetails
- empty :: Doc
- isEmpty :: Doc -> Bool
- nest :: Int -> Doc -> Doc
- char :: Char -> Doc
- text :: String -> Doc
- ftext :: FastString -> Doc
- ptext :: LitString -> Doc
- zeroWidthText :: String -> Doc
- int :: Int -> Doc
- integer :: Integer -> Doc
- float :: Float -> Doc
- double :: Double -> Doc
- rational :: Rational -> Doc
- parens, braces, brackets :: Doc -> Doc
- quotes, doubleQuotes, quote :: Doc -> Doc
- semi, equals, space, colon, comma :: Doc
- lparen, rbrace, lbrace, rbrack, lbrack, rparen :: Doc
- cparen :: Bool -> Doc -> Doc
- (<>) :: Doc -> Doc -> Doc
- (<+>) :: Doc -> Doc -> Doc
- hcat :: [Doc] -> Doc
- hsep :: [Doc] -> Doc
- ($$) :: Doc -> Doc -> Doc
- ($+$) :: Doc -> Doc -> Doc
- vcat :: [Doc] -> Doc
- sep :: [Doc] -> Doc
- cat :: [Doc] -> Doc
- fsep :: [Doc] -> Doc
- fcat :: [Doc] -> Doc
- hang :: Doc -> Int -> Doc -> Doc
- punctuate :: Doc -> [Doc] -> [Doc]
- render :: Doc -> String
- fullRender :: Mode -> Int -> Float -> (TextDetails -> a -> a) -> a -> Doc -> a
- printDoc :: Mode -> Handle -> Doc -> IO ()
- showDocWith :: Mode -> Doc -> String
- bufLeftRender :: BufHandle -> Doc -> IO ()
Documentation
ftext :: FastString -> DocSource
zeroWidthText :: String -> DocSource
Some text, but without any width. Use for non-printing text such as a HTML or Latex tags
fullRender :: Mode -> Int -> Float -> (TextDetails -> a -> a) -> a -> Doc -> aSource
showDocWith :: Mode -> Doc -> StringSource
bufLeftRender :: BufHandle -> Doc -> IO ()Source