Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- prettyPrintHaddock :: Bool -> String -> IO ()
- haddock2Doc :: String -> Doc AnsiStyle
- data HaddockPrintConf = HaddockPrintConf {}
- defaultHaddockConf :: HaddockPrintConf
Documentation
prettyPrintHaddock :: Bool -> String -> IO () Source #
Given a Haddock-formatted docstring, format and print that docstring to the terminal.
The Bool
is to enable a slower but potentially smarter layout algorithm.
haddock2Doc :: String -> Doc AnsiStyle Source #
Parse a docstring into a pretty Doc
. Should never throw an exception
(since haddock-library
will parse something out of any input).
data HaddockPrintConf Source #
Options for how to colour the terminal output
HaddockPrintConf | |
|
defaultHaddockConf :: HaddockPrintConf Source #
A Good Enough colour scheme