pretty-ghci-0.2.0.0: Functionality for beautifying GHCi

Safe HaskellNone
LanguageHaskell2010

Text.PrettyPrint.GHCi.Haddock

Synopsis

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

Constructors

HaddockPrintConf 

Fields

defaultHaddockConf :: HaddockPrintConf Source #

A Good Enough colour scheme