BNFC3-3.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.Haskell.Utilities.Printer

Description

Utilies for the Haskell pretty printer.

Synopsis

Documentation

cats :: [Type] -> [String] Source #

catDoc :: [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.

printAnn :: [String] -> [String] -> [String] -> Doc () Source #