Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- reportJS :: String
- reportCSS :: String
- metricsNames :: Metrics String
- toHtmlReportTableHeader :: Html
- class Num a => ToDataSort a where
- toDataSort :: a -> Integer
- mkDataSortAttribute :: AttributeValue -> Attribute
- toHtmlChange :: forall a. (ToMarkup a, ToDataSort a) => ReportFormat -> MetricsChangeCategory a -> Html
- toHtmlMetricsChange :: ReportFormat -> MetricsChangeCategorized -> [Html]
- toHtmlMetrics :: MetricsCount -> [Html]
- toHtmlReportRow :: ReportFormat -> Int -> ReportRow -> Html
- toHtmlReport :: ReportFormat -> PipelineConfig -> Report -> Html
- mkItem :: Int -> String -> Int -> Html
- mkPercentItem :: String -> Percent -> Html
- mkPercentage :: Int -> Int -> Percent
- mkNumber :: Int -> Int -> String
- toStringReport :: ReportFormat -> PipelineConfig -> Report -> String
Documentation
>>>
import Text.Blaze.Html.Renderer.String (renderHtml)
class Num a => ToDataSort a where Source #
toDataSort :: a -> Integer Source #
Instances
ToDataSort Percent Source # | |
Defined in Language.EO.Phi.Report.Html toDataSort :: Percent -> Integer Source # | |
ToDataSort Integer Source # | |
Defined in Language.EO.Phi.Report.Html toDataSort :: Integer -> Integer Source # | |
ToDataSort Double Source # | |
Defined in Language.EO.Phi.Report.Html toDataSort :: Double -> Integer Source # |
toHtmlChange :: forall a. (ToMarkup a, ToDataSort a) => ReportFormat -> MetricsChangeCategory a -> Html Source #
toHtmlMetrics :: MetricsCount -> [Html] Source #
toHtmlReportRow :: ReportFormat -> Int -> ReportRow -> Html Source #
toHtmlReport :: ReportFormat -> PipelineConfig -> Report -> Html Source #
mkItem :: Int -> String -> Int -> Html Source #
>>>
renderHtml (mkItem 10 "foo" 4)
"<li><b>foo: </b>4 (40.00%)</li>"
toStringReport :: ReportFormat -> PipelineConfig -> Report -> String Source #