ajhc-0.8.0.6: Haskell compiler that produce binary through C language

Safe HaskellNone

Doc.Pretty

Description

Modification od Daan Leijens pretty printer. main changes are use of Doc.DocLike framework and the addition of out-of-band data for html tags or ansi escape codes

Synopsis

Documentation

putDocM :: Monad m => (String -> m ()) -> Doc -> m ()Source

putDocMLn :: Monad m => (String -> m ()) -> Doc -> m ()Source

sep :: [Doc] -> DocSource

hsep :: DocLike a => [a] -> aSource

cat :: [Doc] -> DocSource

hcat :: DocLike a => [a] -> aSource

vcat :: DocLike a => [a] -> aSource

failDoc :: Monad m => Doc -> m aSource

column :: (Int -> Doc) -> DocSource

width :: Doc -> (Int -> Doc) -> DocSource

displayM :: Monad m => (String -> m ()) -> SimpleDoc -> m ()Source

oob :: String -> DocSource

out of band data. This text will appear in the pretty printed output but won't count towards formatting, as far as pretty printing is concerned, it is of length 0.