ghc-7.8.0.20140228: The GHC API

Safe HaskellNone
LanguageHaskell98

Pretty

Synopsis

Documentation

data Doc Source

Instances

nest :: Int -> Doc -> Doc Source

zeroWidthText :: String -> Doc Source

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

(<>) :: Doc -> Doc -> Doc Source

hcat :: [Doc] -> Doc Source

hsep :: [Doc] -> Doc Source

($$) :: Doc -> Doc -> Doc Source

vcat :: [Doc] -> Doc Source

sep :: [Doc] -> Doc Source

cat :: [Doc] -> Doc Source

fsep :: [Doc] -> Doc Source

fcat :: [Doc] -> Doc Source

hang :: Doc -> Int -> Doc -> Doc Source

punctuate :: Doc -> [Doc] -> [Doc] Source

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

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

printDoc_ :: Mode -> Int -> Handle -> Doc -> IO () Source