{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
module Knit.Report.Input.Html.Blaze
(
addBlaze
)
where
import Knit.Report.Input.Html (addLazyTextHtml)
import qualified Text.Blaze.Html as BH
import qualified Text.Blaze.Html.Renderer.Text as BH
import qualified Polysemy as P
import qualified Knit.Effect.Pandoc as PE
import qualified Knit.Effect.PandocMonad as PM
addBlaze
:: (PM.PandocEffects effs, P.Member PE.ToPandoc effs)
=> BH.Html
-> P.Semantic effs ()
addBlaze = addLazyTextHtml . BH.renderHtml