diff options
author | Johannes Gerer <oss@johannesgerer.com> | 2016-10-26 02:07:02 +0200 |
---|---|---|
committer | Johannes Gerer <oss@johannesgerer.com> | 2016-10-26 02:07:02 +0200 |
commit | 675085c2e0b0b851378da08b7d73024766107c87 (patch) | |
tree | 5a927de4a9576aef7e6129b96e74aa5c96f9ffb6 /src/Text/BlazeT/Renderer/Pretty.hs | |
download | blazeT-675085c2e0b0b851378da08b7d73024766107c87.tar.gz blazeT-675085c2e0b0b851378da08b7d73024766107c87.tar.zst blazeT-675085c2e0b0b851378da08b7d73024766107c87.zip |
Initial
Diffstat (limited to 'src/Text/BlazeT/Renderer/Pretty.hs')
-rw-r--r-- | src/Text/BlazeT/Renderer/Pretty.hs | 22 |
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 @@ | |||
1 | module Text.BlazeT.Renderer.Pretty | ||
2 | ( renderMarkup | ||
3 | , renderHtml | ||
4 | , renderMarkupT | ||
5 | , renderHtmlT | ||
6 | ) where | ||
7 | |||
8 | import Control.Monad | ||
9 | import Control.Monad.Identity | ||
10 | import qualified Text.Blaze.Renderer.Pretty as BU | ||
11 | import Text.BlazeT | ||
12 | |||
13 | renderMarkup :: MarkupM a -> String | ||
14 | renderMarkup = runIdentity . renderMarkupT | ||
15 | renderMarkupT :: Monad m => MarkupT m a -> m String | ||
16 | renderMarkupT = liftM BU.renderMarkup . execMarkupT | ||
17 | |||
18 | renderHtml :: MarkupM a -> String | ||
19 | renderHtml = renderMarkup | ||
20 | renderHtmlT :: Monad m => MarkupT m a -> m String | ||
21 | renderHtmlT = renderMarkupT | ||
22 | |||