removed QQ hacks from yesod-sitemap

This commit is contained in:
Pascal Wittmann 2012-03-15 22:14:57 +01:00
parent 6155e135b0
commit a3c307070c

View File

@ -1,5 +1,4 @@
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
---------------------------------------------------------
--
@ -57,12 +56,7 @@ data SitemapUrl url = SitemapUrl
}
template :: [SitemapUrl url] -> HtmlUrl url
template urls =
#if __GLASGOW_HASKELL__ >= 700
[xhamlet|
#else
[$xhamlet|
#endif
template urls = [xhamlet|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
$forall url <- urls
<url>