avoid TH stuff on Android
This commit is contained in:
parent
c172bf7092
commit
04b58f8376
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ import Data.Default (def)
|
||||||
import Text.Hamlet
|
import Text.Hamlet
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __ANDROID__
|
||||||
widgetFile :: String -> Q Exp
|
widgetFile :: String -> Q Exp
|
||||||
#if ! MIN_VERSION_yesod_default(1,1,0)
|
#if ! MIN_VERSION_yesod_default(1,1,0)
|
||||||
widgetFile = widgetFileNoReload
|
widgetFile = widgetFileNoReload
|
||||||
|
@ -26,6 +27,7 @@ widgetFile = widgetFileNoReload $ def
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
hamletTemplate :: FilePath -> FilePath
|
hamletTemplate :: FilePath -> FilePath
|
||||||
hamletTemplate f = globFile "hamlet" f
|
hamletTemplate f = globFile "hamlet" f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue