Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilies for the Haskell pretty printer.
Synopsis
- cats :: [Type] -> [String]
- listcats :: [Type] -> [String]
- toks :: LBNF -> [String]
- keywords :: LBNF -> [String]
- data Literal
- literalDoc :: Doc ()
- tokenDoc :: [String] -> Doc ()
- catDoc :: [String] -> Doc ()
- listcatDoc :: [String] -> Doc ()
- annDoc :: Doc ()
- annotateKeyword :: Doc ()
- annotateLiteral :: Doc ()
- annotateToken :: Doc ()
- annotateCategory :: Doc ()
- annotateListCategory :: Doc ()
- printAnn :: [String] -> [String] -> [String] -> Doc ()
- parseType :: Type -> Doc ()
- parseTokenName :: CatName -> Doc ()
- annotations :: [Item' String1] -> [String]
- annToAnsiStyle :: Doc ()
- renderFunction :: Doc ()
Documentation
literalDoc :: Doc () Source #
listcatDoc :: [String] -> Doc () Source #
annotateKeyword :: Doc () Source #
Annotate keywords with Magenta color.
annotateLiteral :: Doc () Source #
Annotate literals with Cyan color.
annotateToken :: Doc () Source #
Annotate tokens with Green color.
annotateCategory :: Doc () Source #
annotateListCategory :: Doc () Source #
parseTokenName :: CatName -> Doc () Source #
annToAnsiStyle :: Doc () Source #
renderFunction :: Doc () Source #