ghc-7.2.1: The GHC API

Pretty

Synopsis

Documentation

data Doc

Instances

nest :: Int -> Doc -> Doc

char :: Char -> Doc

zeroWidthText :: String -> Doc

Some text, but without any width. Use for non-printing text such as a HTML or Latex tags

int :: Int -> 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]

fullRender :: Mode -> Int -> Float -> (TextDetails -> a -> a) -> a -> Doc -> a

printDoc :: Mode -> Handle -> Doc -> IO ()