{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} -- | This module provides the 'KVITable' 'render' function for -- rendering the table in a HTML table format. The various HTML table -- entries have class designators that allow the user to provide CSS -- to adjust the appearance of the table. module Data.KVITable.Render.HTML ( render -- re-export Render definitions to save the caller an additional import , RenderConfig(..) , defaultRenderConfig ) where import qualified Data.Foldable as F import qualified Data.List as L import Data.Maybe ( fromMaybe, isNothing ) import Data.Text ( Text ) import qualified Data.Text as T import qualified Data.Text.Lazy as TL import Lens.Micro ( (^.) ) import Lucid import qualified Prettyprinter as PP import Data.KVITable import Data.KVITable.Render import Prelude hiding ( lookup ) -- | Renders the specified table in HTML format, using the specified -- 'RenderConfig' controls. The output is only the @