Safe Haskell | None |
---|
Rich Reports
Text/RichReports.hs
Definitions for the representation and construction of a data structure corresponding to a structured representation of the concrete syntax of a programming language, with annotations corresponding to static analysis results. Includes support for generation of ASCII text, as well as formatted HTML with interactive messages.
- type Message = Report
- data Highlight
- data Category
- data Report
- = Text String
- | C Category [Highlight] [Message] String
- | Space
- | Lt
- | Gt
- | Conc [Report]
- | Field Report
- | Row [Report]
- | Table [Report]
- | Indent Report
- | Line [String] [Report]
- | LineIfFlat [String] Report
- | Atom [Highlight] [Message] [Report]
- | Span [Highlight] [Message] [Report]
- | Block [Highlight] [Message] [Report]
- | BlockIndent [Highlight] [Message] [Report]
- | Intersperse Report [Report]
- | Finalize Report
- class ToReport a where
- class ToHighlights a where
- highlights :: a -> [Highlight]
- class ToMessages a where
- keyword :: String -> Report
- keyword_ :: [Highlight] -> [Message] -> String -> Report
- key :: String -> Report
- key_ :: [Highlight] -> [Message] -> String -> Report
- literal :: String -> Report
- literal_ :: [Highlight] -> [Message] -> String -> Report
- lit :: String -> Report
- lit_ :: [Highlight] -> [Message] -> String -> Report
- constant :: String -> Report
- constant_ :: [Highlight] -> [Message] -> String -> Report
- const :: String -> Report
- const_ :: [Highlight] -> [Message] -> String -> Report
- variable :: String -> Report
- variable_ :: [Highlight] -> [Message] -> String -> Report
- var :: String -> Report
- var_ :: [Highlight] -> [Message] -> String -> Report
- error :: String -> Report
- error_ :: [Highlight] -> [Message] -> String -> Report
- err :: String -> Report
- err_ :: [Highlight] -> [Message] -> String -> Report
- highlight :: Highlight -> [Class]
- messageToAttr :: [Message] -> (Property, Value)
Documentation
Text String | |
C Category [Highlight] [Message] String | |
Space | |
Lt | |
Gt | |
Conc [Report] | |
Field Report | |
Row [Report] | |
Table [Report] | |
Indent Report | |
Line [String] [Report] | |
LineIfFlat [String] Report | |
Atom [Highlight] [Message] [Report] | |
Span [Highlight] [Message] [Report] | |
Block [Highlight] [Message] [Report] | |
BlockIndent [Highlight] [Message] [Report] | |
Intersperse Report [Report] | |
Finalize Report |
class ToHighlights a whereSource
highlights :: a -> [Highlight]Source
class ToMessages a whereSource
messageToAttr :: [Message] -> (Property, Value)Source