Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains logic for pretty-printing expressions, including support for syntax highlighting
Synopsis
- data Ann
- annToAnsiStyle :: Ann -> AnsiStyle
- prettyExpr :: Pretty a => Expr s a -> Doc Ann
- data CharacterSet
- prettyCharacterSet :: Pretty a => CharacterSet -> Expr s a -> Doc Ann
- layoutOpts :: LayoutOptions
Pretty
Annotation type used to tag elements in a pretty-printed document for syntax highlighting purposes
annToAnsiStyle :: Ann -> AnsiStyle Source #
Convert annotations to their corresponding color for syntax highlighting purposes
data CharacterSet Source #
prettyCharacterSet :: Pretty a => CharacterSet -> Expr s a -> Doc Ann Source #
layoutOpts :: LayoutOptions Source #
Default layout options