trifecta-2.1.1: A modern parser combinator library with convenient diagnostics
Copyright(C) 2011-2019 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Text.Trifecta.Highlight

Description

 
Synopsis

Documentation

data Highlight #

Tags used by the TokenParsing highlight combinator.

withHighlight :: Highlight -> Doc AnsiStyle -> Doc AnsiStyle Source #

Convert a Highlight into a coloration on a Doc.

doc :: String -> HighlightedRope -> HighlightDoc Source #

Generate an HTML document from a title and a HighlightedRope.