From 09c37eb916582be078a2ca9d69d489ae4024601d Mon Sep 17 00:00:00 2001 From: Ross MacLeod Date: Thu, 22 Sep 2016 13:27:25 -0400 Subject: [PATCH] Use #if MIN_VERSION_transformers(0,4,0) instead of __GLASGOW_HASKELL__ >= 710 --- yesod-core/Yesod/Core/Class/Handler.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yesod-core/Yesod/Core/Class/Handler.hs b/yesod-core/Yesod/Core/Class/Handler.hs index dc0bf920..9890511a 100644 --- a/yesod-core/Yesod/Core/Class/Handler.hs +++ b/yesod-core/Yesod/Core/Class/Handler.hs @@ -24,7 +24,7 @@ import Control.Monad.Trans.Identity ( IdentityT) import Control.Monad.Trans.List ( ListT ) import Control.Monad.Trans.Maybe ( MaybeT ) import Control.Monad.Trans.Error ( ErrorT, Error) -#if __GLASGOW_HASKELL__ >= 710 +#if MIN_VERSION_transformers(0,4,0) import Control.Monad.Trans.Except ( ExceptT ) #endif import Control.Monad.Trans.Reader ( ReaderT ) @@ -58,7 +58,7 @@ GO(IdentityT) GO(ListT) GO(MaybeT) GOX(Error e, ErrorT e) -#if __GLASGOW_HASKELL__ >= 710 +#if MIN_VERSION_transformers(0,4,0) GO(ExceptT e) #endif GO(ReaderT r) @@ -84,7 +84,7 @@ GO(IdentityT) GO(ListT) GO(MaybeT) GOX(Error e, ErrorT e) -#if __GLASGOW_HASKELL__ >= 710 +#if MIN_VERSION_transformers(0,4,0) GO(ExceptT e) #endif GO(ReaderT r)