{-# LANGUAGE OverloadedStrings #-} module Text.Blaze.HTML5 where import Data.Text (Text) import Text.Blaze.Utils indentTag :: Text -> IndentTag indentTag t = case t of "body" -> IndentTagChildren "head" -> IndentTagChildren "html" -> IndentTagChildren "ol" -> IndentTagChildren "section" -> IndentTagChildren "table" -> IndentTagChildren "tbody" -> IndentTagChildren "thead" -> IndentTagChildren "tr" -> IndentTagChildren "ul" -> IndentTagChildren "div" -> IndentTagText -- "td" -> IndentTagText "li" -> IndentTagText _ -> IndentTagPreserve