Safe Haskell | None |
---|---|
Language | Haskell2010 |
A pretty renderer for Diagnostic
s. Can optionally render in color
Synopsis
- render :: Config -> Diagnostic -> DocText
- data Config = Config {
- tabWidth :: !Word
- layoutOptions :: !LayoutOptions
- infoStyle :: !Style
- warningStyle :: !Style
- errorStyle :: !Style
- gutterStyle :: !Style
- linkStyle :: !Style
- colourizeHighlights :: !Bool
- gutterVLine :: !Char
- gutterVBreak :: !Char
- gutterHLineHead :: !Char
- gutterHLineFoot :: !Char
- gutterCornerHead :: !Char
- gutterCornerFoot :: !Char
- locationLeftBracket :: !Text
- locationRightBracket :: !Text
- locationSeparator :: !Text
- highlightUnderLeft :: !Char
- highlightUnderRight :: !Char
- highlightUnder :: !Char
- highlightUnderDown :: !Char
- highlightTwospan :: !Char
- highlightConnector :: !Char
- highlightConnectionLeft :: !Char
- highlightConnectionRight :: !Char
- highlightHConnector :: !Char
- highlightHTee :: !Char
- highlightLabelTee :: !Char
- highlightCornerTop :: !Char
- highlightCornerBottom :: !Char
- prettyConfig :: Config
- asciiColorConfig :: Config
- asciiPlainConfig :: Config
Documentation
render :: Config -> Diagnostic -> DocText Source #
Renders a Diagnostic
using the provided Config
into a DocText
.
Configuration for rendering
Config | |
|
prettyConfig :: Config Source #
A pretty rendering configuration, making use of color and Unicode box-drawing characters
asciiColorConfig :: Config Source #
A colorful ASCII rendering configuration
asciiPlainConfig :: Config Source #
A plain ASCII rendering configuration. Useful if the terminal supports neither colour nor box-drawing characters