trifecta-2: A modern parser combinator library with convenient diagnostics

Copyright(C) 2011-2015 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.

data HighlightedRope Source #

A HighlightedRope is a Rope with an associated IntervalMap full of highlighted regions.

withHighlight :: Highlight -> Doc -> Doc 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.