Copyright | (c) Edward Kmett and Dan Doel 2012-2014 |
---|---|
License | BSD3 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
General-purpose utilities for pretty printing.
- names :: [String]
- parensIf :: Bool -> Doc -> Doc
- hyph :: String -> Doc
- prePunctuate :: Doc -> [Doc] -> [Doc]
- prePunctuate' :: Doc -> Doc -> [Doc] -> [Doc]
- block :: [Doc] -> Doc
- say :: MonadIO m => Doc -> m ()
- sayLn :: MonadIO m => Doc -> m ()
- chooseNames :: (String -> Bool) -> [Hint] -> [String] -> ([String], [String])
Documentation
This is an infinitely large free variable supply you can trim your used variables out of.
prePunctuate :: Doc -> [Doc] -> [Doc] Source
prePunctuate' :: Doc -> Doc -> [Doc] -> [Doc] Source