removed QQ hacks from yesod-sitemap
This commit is contained in:
parent
6155e135b0
commit
a3c307070c
@ -1,5 +1,4 @@
|
|||||||
{-# LANGUAGE QuasiQuotes #-}
|
{-# LANGUAGE QuasiQuotes #-}
|
||||||
{-# LANGUAGE CPP #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
--
|
--
|
||||||
@ -57,12 +56,7 @@ data SitemapUrl url = SitemapUrl
|
|||||||
}
|
}
|
||||||
|
|
||||||
template :: [SitemapUrl url] -> HtmlUrl url
|
template :: [SitemapUrl url] -> HtmlUrl url
|
||||||
template urls =
|
template urls = [xhamlet|
|
||||||
#if __GLASGOW_HASKELL__ >= 700
|
|
||||||
[xhamlet|
|
|
||||||
#else
|
|
||||||
[$xhamlet|
|
|
||||||
#endif
|
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
$forall url <- urls
|
$forall url <- urls
|
||||||
<url>
|
<url>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user