diff options
author | Joey Hess <joey@kitenet.net> | 2013-03-10 15:43:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-03-10 15:43:17 -0400 |
commit | 30cf4d4df7a4fda22e997366731af910f9996c78 (patch) | |
tree | c0ffb1882ad668df3b6bb0940ceb673ab8dc3003 /Utility/Yesod.hs | |
parent | cbe2b256dbe6657dae559896ec2957fbde6595ff (diff) |
simpler use of MIN_VERSION checks
Diffstat (limited to 'Utility/Yesod.hs')
-rw-r--r-- | Utility/Yesod.hs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Utility/Yesod.hs b/Utility/Yesod.hs index 93000587c..2861f279d 100644 --- a/Utility/Yesod.hs +++ b/Utility/Yesod.hs @@ -7,23 +7,17 @@ {-# LANGUAGE CPP #-} -#if defined VERSION_yesod_default -#if ! MIN_VERSION_yesod_default(1,1,0) -#define WITH_OLD_YESOD -#endif -#endif - module Utility.Yesod where import Yesod.Default.Util import Language.Haskell.TH.Syntax -#ifndef WITH_OLD_YESOD +#if MIN_VERSION_yesod_default(1,1,0) import Data.Default (def) import Text.Hamlet #endif widgetFile :: String -> Q Exp -#ifdef WITH_OLD_YESOD +#if ! MIN_VERSION_yesod_default(1,1,0) widgetFile = widgetFileNoReload #else widgetFile = widgetFileNoReload $ def |