summaryrefslogtreecommitdiff
path: root/Utility/Yesod.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-15 13:32:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-15 13:32:55 -0400
commitaec93a9847caf7409152bf78664b591ab7608bc5 (patch)
tree938cf42bccd6d7c472abbc49bc4137e10ee103f5 /Utility/Yesod.hs
parent1c7360c01fa602541856b90ef6c308a9d4e2d3b0 (diff)
avoid TH stuff on Android
Diffstat (limited to 'Utility/Yesod.hs')
-rw-r--r--Utility/Yesod.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utility/Yesod.hs b/Utility/Yesod.hs
index 2861f279d..f7f57a14c 100644
--- a/Utility/Yesod.hs
+++ b/Utility/Yesod.hs
@@ -16,6 +16,7 @@ import Data.Default (def)
import Text.Hamlet
#endif
+#ifndef __ANDROID__
widgetFile :: String -> Q Exp
#if ! MIN_VERSION_yesod_default(1,1,0)
widgetFile = widgetFileNoReload
@@ -26,6 +27,7 @@ widgetFile = widgetFileNoReload $ def
}
}
#endif
+#endif
hamletTemplate :: FilePath -> FilePath
hamletTemplate f = globFile "hamlet" f