hledger-lib-1.52.1: A library providing the core functionality of hledger

Safe Haskell | None
Language | GHC2021

Hledger.Write.Html.Lucid

Description

HTML writing helpers using lucid.

Synopsis

- type Html = Html ()
- toHtml :: forall (m :: Type -> Type). (ToHtml a, Monad m) => a -> HtmlT m ()
- styledTableHtml :: Lines border => [[Cell border Html]] -> Html
- formatRow :: Lines border => [Cell border Html] -> Html
- formatCell :: Lines border => Cell border Html -> Html

# Documentation

type Html = Html () Source #

toHtml :: forall (m :: Type -> Type). (ToHtml a, Monad m) => a -> HtmlT m () Source #

Convert to HTML, doing HTML escaping.

styledTableHtml :: Lines border => [[Cell border Html]] -> Html Source #

Export spreadsheet table data as HTML table. This is derived from https://hackage.haskell.org/package/classify-frog-0.2.4.3/src/src/Spreadsheet/Format.hs

formatRow :: Lines border => [Cell border Html] -> Html Source #

formatCell :: Lines border => Cell border Html -> Html Source #