hspec-setup-0.2.1.0: Add an hspec test-suite in one command

Safe HaskellNone
LanguageHaskell2010

System.Directory.Recursive

Contents

Synopsis

Documentation

pretty :: Pretty a => a -> Doc #

putDoc :: Doc -> IO () #

The action (putDoc doc) pretty prints document doc to the standard output, with a page width of 100 characters and a ribbon width of 40 characters.

main :: IO ()
main = do{ putDoc (text "hello" <+> text "world") }

Which would output

hello world

Any ANSI colorisation in doc will be output.

Orphan instances

Pretty (DirTree a) Source # 

Methods

pretty :: DirTree a -> Doc #

prettyList :: [DirTree a] -> Doc #