Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- prettyPrintValue :: Bool -> String -> IO ()
- value2Doc :: String -> Doc AnsiStyle
- data ValuePrintConf = ValuePrintConf {}
- defaultValueConf :: ValuePrintConf
- prettyPrintHaddock :: Bool -> String -> IO ()
- haddock2Doc :: String -> Doc AnsiStyle
- data HaddockPrintConf = HaddockPrintConf {}
- defaultHaddockConf :: HaddockPrintConf
- data AnsiStyle
- color :: Color -> AnsiStyle
- colorDull :: Color -> AnsiStyle
- bgColor :: Color -> AnsiStyle
- bgColorDull :: Color -> AnsiStyle
- data Color
- bold :: AnsiStyle
- italicized :: AnsiStyle
- underlined :: AnsiStyle
Interactive expression printing
data ValuePrintConf Source #
Options for how to colour the terminal output
ValuePrintConf | |
|
defaultValueConf :: ValuePrintConf Source #
A Good Enough colour scheme
Interactive doc string printing
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
Formatting options
Color
bgColorDull :: Color -> AnsiStyle #
Style
italicized :: AnsiStyle #
underlined :: AnsiStyle #