blob: 0a2de8a0952eb49b87476d1be8f5b92b7af92f51 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
module Text.BlazeT.Renderer.String
( fromChoiceString
, renderMarkup
, renderHtml
, renderMarkupT
, renderHtmlT
) where
import Control.Monad
import Control.Monad.Identity
import Text.Blaze.Internal (ChoiceString)
import qualified Text.Blaze.Renderer.String as BU
import Text.BlazeT
fromChoiceString :: ChoiceString -> String -> String
fromChoiceString = BU.fromChoiceString
renderMarkup :: MarkupM a -> String
renderMarkup = runIdentity . renderMarkupT
renderMarkupT :: Monad m => MarkupT m a -> m String
renderMarkupT = liftM BU.renderMarkup . execMarkupT
renderHtml :: MarkupM a -> String
renderHtml = renderMarkup
renderHtmlT :: Monad m => MarkupT m a -> m String
renderHtmlT = renderMarkupT
|