aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Text/BlazeT/Renderer/Pretty.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/BlazeT/Renderer/Pretty.hs')
-rw-r--r--src/Text/BlazeT/Renderer/Pretty.hs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Text/BlazeT/Renderer/Pretty.hs b/src/Text/BlazeT/Renderer/Pretty.hs
new file mode 100644
index 0000000..8977c94
--- /dev/null
+++ b/src/Text/BlazeT/Renderer/Pretty.hs
@@ -0,0 +1,22 @@
1module Text.BlazeT.Renderer.Pretty
2 ( renderMarkup
3 , renderHtml
4 , renderMarkupT
5 , renderHtmlT
6 ) where
7
8import Control.Monad
9import Control.Monad.Identity
10import qualified Text.Blaze.Renderer.Pretty as BU
11import Text.BlazeT
12
13renderMarkup :: MarkupM a -> String
14renderMarkup = runIdentity . renderMarkupT
15renderMarkupT :: Monad m => MarkupT m a -> m String
16renderMarkupT = liftM BU.renderMarkup . execMarkupT
17
18renderHtml :: MarkupM a -> String
19renderHtml = renderMarkup
20renderHtmlT :: Monad m => MarkupT m a -> m String
21renderHtmlT = renderMarkupT
22