Safe Haskell | None |
---|
RichReports
Text/RichReports.hs
A library that supports the manual and automated assembly of modules for building interactive HTML reports consisting of abstract syntax trees as concrete syntax annotated with the results of static analysis and abstract interpretation algorithms.
Web: richreports.org Version: 0.0.3.0
- type Message = Report
- data Highlight
- data Entity
- data Report
- = Entity Entity
- | Text String
- | Symbol String
- | Punctuation String
- | Keyword String
- | Literal String
- | Konstant String
- | Operator String
- | Builtin String
- | Library String
- | Variable String
- | Error String
- | Atom [Highlight] [Message] [Report]
- | Span [Highlight] [Message] [Report]
- | Line [Report]
- | Block [Highlight] [Message] [Report]
- | Concat [Report]
- | Intersperse Report [Report]
- | Field [Report]
- | Row [Report]
- | Table [Report]
- | Page Report
- class ToReport a where
- class ToHighlights a where
- highlights :: a -> [Highlight]
- class ToMessages a where
- highlightsStr :: [Highlight] -> [Class]
- highlightStr :: Highlight -> [Class]
- entityStr :: Entity -> String
- messagesToAttr :: [Message] -> (Property, Value)
Documentation
Rich report class declaration (typically, abstract syntax data structures would be members).
class ToHighlights a whereSource
Rich report highlight and message class declaration (typically, static analysis results data structures would be members).
highlights :: a -> [Highlight]Source
class ToMessages a whereSource
highlightsStr :: [Highlight] -> [Class]Source
Generation of an interactive HTML version of the report.
highlightStr :: Highlight -> [Class]Source
messagesToAttr :: [Message] -> (Property, Value)Source