Copyright | (c) 2011 Simon Meier |
---|---|
License | GPL v3 (see LICENSE) |
Maintainer | Simon Meier <iridcode@gmail.com> |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
Text.PrettyPrint.Highlight
Description
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
- comment :: HighlightDocument d => d -> d
- keyword :: HighlightDocument d => d -> d
- operator :: HighlightDocument d => d -> d
- comment_ :: HighlightDocument d => String -> d
- keyword_ :: HighlightDocument d => String -> d
- operator_ :: HighlightDocument d => String -> d
- opParens :: HighlightDocument d => d -> d
- module Text.PrettyPrint.Class
Highlight style
HighlightDocument class
class Document d => HighlightDocument d where #
Minimal complete definition
Methods
highlight :: HighlightStyle -> d -> d #
Instances
HighlightDocument Doc # | |
Document d => HighlightDocument (HtmlDoc d) # | |
comment :: HighlightDocument d => d -> d #
keyword :: HighlightDocument d => d -> d #
operator :: HighlightDocument d => d -> d #
comment_ :: HighlightDocument d => String -> d #
keyword_ :: HighlightDocument d => String -> d #
operator_ :: HighlightDocument d => String -> d #
opParens :: HighlightDocument d => d -> d #
module Text.PrettyPrint.Class