ghc-7.10.0.20150316: The GHC API

Safe HaskellNone
LanguageHaskell2010

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 infixl 6 Source

(<+>) :: Doc -> Doc -> Doc infixl 6 Source

hcat :: [Doc] -> Doc Source

hsep :: [Doc] -> Doc Source

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

($+$) :: Doc -> Doc -> Doc infixl 5 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