Safe Haskell | None |
---|---|
Language | Haskell2010 |
Text.PrettyPrint.GHCi
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
Constructors
ValuePrintConf | |
Fields
|
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
Constructors
HaddockPrintConf | |
Fields
|
defaultHaddockConf :: HaddockPrintConf Source #
A Good Enough colour scheme
Formatting options
Instances
Eq AnsiStyle | |
Ord AnsiStyle | |
Defined in Data.Text.Prettyprint.Doc.Render.Terminal.Internal | |
Show AnsiStyle | |
Semigroup AnsiStyle | |
Monoid AnsiStyle | |
Color
bgColorDull :: Color -> AnsiStyle #
Style
italicized :: AnsiStyle #
underlined :: AnsiStyle #