1 {-# LANGUAGE OverloadedStrings #-}
3 import Data.Time (getCurrentTime)
4 import Text.BlazeT.Html5 hiding (main)
5 import Text.BlazeT.Renderer.String
6 import Control.Monad.Trans.Class (lift)
8 -- Backwords compatible Blaze HTML
11 p $ "created with blaze-html"
13 -- BlazeT HTML with lifted IO actions
16 time <- lift getCurrentTime
17 p $ string $ "created with blazeT at " ++ show time
21 putStrLn $ renderMarkup old
22 putStrLn =<< execWith renderMarkup new