Portability | portable |
---|---|
Maintainer | Simon Meier <iridcode@gmail.com> |
Safe Haskell | Safe-Infered |
Pretty-printing with support for highlighting keywords and comments. Currently this module is not functional on itself, but geared towards its use in Text.PrettyPrint.Html.
- data HighlightStyle
- class Document d => HighlightDocument d where
- highlight :: HighlightStyle -> d -> d
- comment, operator, keyword :: HighlightDocument d => d -> d
- comment_, operator_, keyword_ :: HighlightDocument d => String -> d
- opParens :: HighlightDocument d => d -> d
- module Text.PrettyPrint.Class
Highlight style
data HighlightStyle Source
Currently we support only keywords, operators, and comments.
HighlightDocument class
class Document d => HighlightDocument d whereSource
highlight :: HighlightStyle -> d -> dSource
HighlightDocument Doc | |
Document d => HighlightDocument (NoHtmlDoc d) | |
Document d => HighlightDocument (HtmlDoc d) |
comment, operator, keyword :: HighlightDocument d => d -> dSource
opParens :: HighlightDocument d => d -> dSource
module Text.PrettyPrint.Class